#122242#122242

#122242 is a dark, moderate blue. Relative luminance 0.017; OKLCH L 25.7% C 0.064 H 262.7°. Best body text is #FFFFFF at 15.75:1 contrast (WCAG AA passes).

Color values

HEX#122242
RGBrgb(18, 34, 66)
HSLhsl(220, 57%, 16%)
HSVhsv(220, 73%, 26%)
CMYKcmyk(72.7%, 48.5%, 0%, 74.1%)
CIE-LABlab(13.63, 5.69, -22.31)
CIE-LCHlch(13.63, 23.02, 284.31°)
OKLaboklab(25.73% -0.0081 -0.0636)
OKLCHoklch(25.73% 0.064 262.7)
XYZxyz(1.8045, 1.6658, 5.3796)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122242 #423212
analogous
#123A42 #122242 #1A1242
triadic
#122242 #421222 #224212
tetradic
#122242 #42123A #423212 #12421A
square
#122242 #42123A #423212 #12421A
split-complementary
#122242 #421A12 #3A4212
monochromatic
#070C18 #070C18 #122242 #1F3B72 #2C54A2

Accessibility & contrast

On white

15.75
#122242 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#122242 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122242
15.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122242#FFFFFF#000000##FFFFFF
##1222421.0015.751.3315.75
#FFFFFF15.751.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#132543
Deuteranopia (green-blind)
#0C2141
Tritanopia (blue-blind)
#00292E
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #122242;
/* rgb */ color: rgb(18, 34, 66);
/* oklch */ color: oklch(25.7% 0.064 262.7);
Tailwind
colors: {
  custom: {
    50: '#565c76',
    500: '#122242',
    950: '#000000',
  },
}
SCSS
$custom: #122242;
$custom-light: #565c76;
$custom-dark: #000000;
JSON
{
  "hex": "#122242",
  "rgb": {
    "r": 18,
    "g": 34,
    "b": 66
  },
  "hsl": {
    "h": 220,
    "s": 57.143,
    "l": 16.471
  },
  "oklch": {
    "l": 0.25726,
    "c": 0.06415,
    "h": 262.7
  },
  "luminance": 0.01666
}

Semantic roles & 50–950 ramp

primary
#122242
secondary
#7B6435
accent
#AD47E0
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030408
muted
#78797B

Preview Lab

Preview with #122242

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

Preview Lab → · Contrast checker → · Palette generator →

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