#122151#122151

#122151 is a dark, moderate blue. Relative luminance 0.018; OKLCH L 26.7% C 0.090 H 267.0°. Best body text is #FFFFFF at 15.42:1 contrast (WCAG AA passes).

Color values

HEX#122151
RGBrgb(18, 33, 81)
HSLhsl(226, 64%, 19%)
HSVhsv(226, 78%, 32%)
CMYKcmyk(77.8%, 59.3%, 0%, 68.2%)
CIE-LABlab(14.46, 12.87, -31.30)
CIE-LCHlch(14.46, 33.84, 292.36°)
OKLaboklab(26.73% -0.0047 -0.0901)
OKLCHoklch(26.73% 0.09 267)
XYZxyz(2.2780, 1.8102, 8.0123)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122151 #514212
analogous
#124151 #122151 #231251
triadic
#122151 #511221 #215112
tetradic
#122151 #511241 #514212 #125123
square
#122151 #511241 #514212 #125123
split-complementary
#122151 #512312 #415112
monochromatic
#060A19 #070D1F #122151 #1D3583 #284AB5

Accessibility & contrast

On white

15.42
#122151 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#122151 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122151
15.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122151#FFFFFF#000000##FFFFFF
##1221511.0015.421.3615.42
#FFFFFF15.421.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002853
Deuteranopia (green-blind)
#002250
Tritanopia (blue-blind)
#002D35
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #122151;
/* rgb */ color: rgb(18, 33, 81);
/* oklch */ color: oklch(26.7% 0.090 267.0);
Tailwind
colors: {
  custom: {
    50: '#5a5b82',
    500: '#122151',
    950: '#000000',
  },
}
SCSS
$custom: #122151;
$custom-light: #5a5b82;
$custom-dark: #000000;
JSON
{
  "hex": "#122151",
  "rgb": {
    "r": 18,
    "g": 33,
    "b": 81
  },
  "hsl": {
    "h": 225.714,
    "s": 63.636,
    "l": 19.412
  },
  "oklch": {
    "l": 0.2673,
    "c": 0.09022,
    "h": 267
  },
  "luminance": 0.0181
}

Semantic roles & 50–950 ramp

primary
#122151
secondary
#8A7635
accent
#BF41E7
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040A
muted
#79797C

Preview Lab

Preview with #122151

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

Preview Lab → · Contrast checker → · Palette generator →

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