#122142#122142

#122142 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.5% C 0.066 H 263.9°. Best body text is #FFFFFF at 15.89:1 contrast (WCAG AA passes).

Color values

HEX#122142
RGBrgb(18, 33, 66)
HSLhsl(221, 57%, 16%)
HSVhsv(221, 73%, 26%)
CMYKcmyk(72.7%, 50%, 0%, 74.1%)
CIE-LABlab(13.29, 6.45, -22.85)
CIE-LCHlch(13.29, 23.74, 285.75°)
OKLaboklab(25.47% -0.0069 -0.0652)
OKLCHoklch(25.47% 0.066 263.9)
XYZxyz(1.7763, 1.6095, 5.3703)
Luminance0.0161 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122142 #423312
analogous
#123942 #122142 #1B1242
triadic
#122142 #421221 #214212
tetradic
#122142 #421239 #423312 #12421B
square
#122142 #421239 #423312 #12421B
split-complementary
#122142 #421B12 #394212
monochromatic
#070C18 #070C18 #122142 #1F3972 #2C51A2

Accessibility & contrast

On white

15.89
#122142 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#122142 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122142
15.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122142#FFFFFF#000000##FFFFFF
##1221421.0015.891.3215.89
#FFFFFF15.891.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#112443
Deuteranopia (green-blind)
#0A2041
Tritanopia (blue-blind)
#00292E
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #122142;
/* rgb */ color: rgb(18, 33, 66);
/* oklch */ color: oklch(25.5% 0.066 263.9);
Tailwind
colors: {
  custom: {
    50: '#565b76',
    500: '#122142',
    950: '#000000',
  },
}
SCSS
$custom: #122142;
$custom-light: #565b76;
$custom-dark: #000000;
JSON
{
  "hex": "#122142",
  "rgb": {
    "r": 18,
    "g": 33,
    "b": 66
  },
  "hsl": {
    "h": 221.25,
    "s": 57.143,
    "l": 16.471
  },
  "oklch": {
    "l": 0.25466,
    "c": 0.06561,
    "h": 263.9
  },
  "luminance": 0.0161
}

Semantic roles & 50–950 ramp

primary
#122142
secondary
#7B6535
accent
#B147E0
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030408
muted
#78797B

Preview Lab

Preview with #122142

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

Preview Lab → · Contrast checker → · Palette generator →

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