#122147#122147

#122147 is a dark, moderate blue. Relative luminance 0.017; OKLCH L 25.9% C 0.074 H 265.4°. Best body text is #FFFFFF at 15.74:1 contrast (WCAG AA passes).

Color values

HEX#122147
RGBrgb(18, 33, 71)
HSLhsl(223, 60%, 17%)
HSVhsv(223, 75%, 28%)
CMYKcmyk(74.6%, 53.5%, 0%, 72.2%)
CIE-LABlab(13.66, 8.58, -25.73)
CIE-LCHlch(13.66, 27.13, 288.44°)
OKLaboklab(25.87% -0.006 -0.0737)
OKLCHoklch(25.87% 0.074 265.4)
XYZxyz(1.9302, 1.6711, 6.1808)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122147 #473812
analogous
#123C47 #122147 #1E1247
triadic
#122147 #471221 #214712
tetradic
#122147 #47123C #473812 #12471E
square
#122147 #47123C #473812 #12471E
split-complementary
#122147 #471E12 #3C4712
monochromatic
#060B18 #060B18 #122147 #1E3878 #2B4EA9

Accessibility & contrast

On white

15.74
#122147 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #122147
15.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122147#FFFFFF#000000##FFFFFF
##1221471.0015.741.3315.74
#FFFFFF15.741.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D2548
Deuteranopia (green-blind)
#032146
Tritanopia (blue-blind)
#002A30
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #122147;
/* rgb */ color: rgb(18, 33, 71);
/* oklch */ color: oklch(25.9% 0.074 265.4);
Tailwind
colors: {
  custom: {
    50: '#575b7a',
    500: '#122147',
    950: '#000000',
  },
}
SCSS
$custom: #122147;
$custom-light: #575b7a;
$custom-dark: #000000;
JSON
{
  "hex": "#122147",
  "rgb": {
    "r": 18,
    "g": 33,
    "b": 71
  },
  "hsl": {
    "h": 223.019,
    "s": 59.551,
    "l": 17.451
  },
  "oklch": {
    "l": 0.25867,
    "c": 0.07395,
    "h": 265.4
  },
  "luminance": 0.01671
}

Semantic roles & 50–950 ramp

primary
#122147
secondary
#806B35
accent
#B645E3
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030409
muted
#78797B

Preview Lab

Preview with #122147

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

Preview Lab → · Contrast checker → · Palette generator →

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