#121952#121952

#121952 is a dark, moderate blue. Relative luminance 0.014; OKLCH L 25.1% C 0.103 H 271.3°. Best body text is #FFFFFF at 16.32:1 contrast (WCAG AA passes).

Color values

HEX#121952
RGBrgb(18, 25, 82)
HSLhsl(233, 64%, 20%)
HSVhsv(233, 78%, 32%)
CMYKcmyk(78%, 69.5%, 0%, 67.8%)
CIE-LABlab(12.17, 19.30, -35.70)
CIE-LCHlch(12.17, 40.58, 298.39°)
OKLaboklab(25.06% 0.0023 -0.1031)
OKLCHoklch(25.06% 0.103 271.3)
XYZxyz(2.1196, 1.4328, 8.1459)
Luminance0.0143 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121952 #524B12
analogous
#123952 #121952 #2B1252
triadic
#121952 #521219 #195212
tetradic
#121952 #521239 #524B12 #12522B
square
#121952 #521239 #524B12 #12522B
split-complementary
#121952 #522B12 #395212
monochromatic
#060819 #070A20 #121952 #1D2884 #2838B6

Accessibility & contrast

On white

16.32
#121952 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#121952 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121952
16.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121952#FFFFFF#000000##FFFFFF
##1219521.0016.321.2916.32
#FFFFFF16.321.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002354
Deuteranopia (green-blind)
#001D51
Tritanopia (blue-blind)
#002832
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #121952;
/* rgb */ color: rgb(18, 25, 82);
/* oklch */ color: oklch(25.1% 0.103 271.3);
Tailwind
colors: {
  custom: {
    50: '#5b5583',
    500: '#121952',
    950: '#000000',
  },
}
SCSS
$custom: #121952;
$custom-light: #5b5583;
$custom-dark: #000000;
JSON
{
  "hex": "#121952",
  "rgb": {
    "r": 18,
    "g": 25,
    "b": 82
  },
  "hsl": {
    "h": 233.438,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.25059,
    "c": 0.10315,
    "h": 271.3
  },
  "luminance": 0.01433
}

Semantic roles & 50–950 ramp

primary
#121952
secondary
#8B8135
accent
#D541E7
background
#F5F4F8
surface
#E9E8EF
border
#C5C4CA
text
#04030B
muted
#79787C

Preview Lab

Preview with #121952

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

Preview Lab → · Contrast checker → · Palette generator →

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