#122552#122552

#122552 is a dark, moderate blue. Relative luminance 0.021; OKLCH L 27.8% C 0.086 H 264.3°. Best body text is #FFFFFF at 14.87:1 contrast (WCAG AA passes).

Color values

HEX#122552
RGBrgb(18, 37, 82)
HSLhsl(222, 64%, 20%)
HSVhsv(222, 78%, 32%)
CMYKcmyk(78%, 54.9%, 0%, 67.8%)
CIE-LABlab(15.80, 10.29, -29.80)
CIE-LCHlch(15.80, 31.53, 289.04°)
OKLaboklab(27.78% -0.0085 -0.0856)
OKLCHoklch(27.78% 0.086 264.3)
XYZxyz(2.4335, 2.0607, 8.2505)
Luminance0.0206 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122552 #523F12
analogous
#124552 #122552 #1F1252
triadic
#122552 #521225 #255212
tetradic
#122552 #521245 #523F12 #12521F
square
#122552 #521245 #523F12 #12521F
split-complementary
#122552 #521F12 #455212
monochromatic
#060B19 #070E20 #122552 #1D3C84 #2852B6

Accessibility & contrast

On white

14.87
#122552 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#122552 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122552
14.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122552#FFFFFF#000000##FFFFFF
##1225521.0014.871.4114.87
#FFFFFF14.871.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A2A54
Deuteranopia (green-blind)
#002551
Tritanopia (blue-blind)
#003037
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #122552;
/* rgb */ color: rgb(18, 37, 82);
/* oklch */ color: oklch(27.8% 0.086 264.3);
Tailwind
colors: {
  custom: {
    50: '#5a5f83',
    500: '#122552',
    950: '#000000',
  },
}
SCSS
$custom: #122552;
$custom-light: #5a5f83;
$custom-dark: #000000;
JSON
{
  "hex": "#122552",
  "rgb": {
    "r": 18,
    "g": 37,
    "b": 82
  },
  "hsl": {
    "h": 222.188,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.27776,
    "c": 0.08604,
    "h": 264.3
  },
  "luminance": 0.02061
}

Semantic roles & 50–950 ramp

primary
#122552
secondary
#8B7135
accent
#B641E7
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040A
muted
#79797C

Preview Lab

Preview with #122552

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#122552 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva