#122154#122154

#122154 is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.0% C 0.095 H 267.3°. Best body text is #FFFFFF at 15.32:1 contrast (WCAG AA passes).

Color values

HEX#122154
RGBrgb(18, 33, 84)
HSLhsl(226, 65%, 20%)
HSVhsv(226, 79%, 33%)
CMYKcmyk(78.6%, 60.7%, 0%, 67.1%)
CIE-LABlab(14.71, 14.16, -32.92)
CIE-LCHlch(14.71, 35.83, 293.27°)
OKLaboklab(27% -0.0045 -0.0948)
OKLCHoklch(27% 0.095 267.3)
XYZxyz(2.3930, 1.8562, 8.6179)
Luminance0.0186 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122154 #544512
analogous
#124254 #122154 #241254
triadic
#122154 #541221 #215412
tetradic
#122154 #541242 #544512 #125424
square
#122154 #541242 #544512 #125424
split-complementary
#122154 #542412 #425412
monochromatic
#050A19 #070D22 #122154 #1D3586 #2849B9

Accessibility & contrast

On white

15.32
#122154 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#122154 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122154
15.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122154#FFFFFF#000000##FFFFFF
##1221541.0015.321.3715.32
#FFFFFF15.321.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002856
Deuteranopia (green-blind)
#002253
Tritanopia (blue-blind)
#002D36
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #122154;
/* rgb */ color: rgb(18, 33, 84);
/* oklch */ color: oklch(27.0% 0.095 267.3);
Tailwind
colors: {
  custom: {
    50: '#5b5b85',
    500: '#122154',
    950: '#000000',
  },
}
SCSS
$custom: #122154;
$custom-light: #5b5b85;
$custom-dark: #000000;
JSON
{
  "hex": "#122154",
  "rgb": {
    "r": 18,
    "g": 33,
    "b": 84
  },
  "hsl": {
    "h": 226.364,
    "s": 64.706,
    "l": 20
  },
  "oklch": {
    "l": 0.27004,
    "c": 0.09496,
    "h": 267.3
  },
  "luminance": 0.01856
}

Semantic roles & 50–950 ramp

primary
#122154
secondary
#8D7935
accent
#C240E8
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040B
muted
#79797C

Preview Lab

Preview with #122154

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

Preview Lab → · Contrast checker → · Palette generator →

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