#121F4D#121F4D

#121F4D is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.9% C 0.087 H 267.9°. Best body text is #FFFFFF at 15.80:1 contrast (WCAG AA passes).

Color values

HEX#121F4D
RGBrgb(18, 31, 77)
HSLhsl(227, 62%, 19%)
HSVhsv(227, 77%, 30%)
CMYKcmyk(76.6%, 59.7%, 0%, 69.8%)
CIE-LABlab(13.50, 12.68, -30.12)
CIE-LCHlch(13.50, 32.68, 292.83°)
OKLaboklab(25.9% -0.0031 -0.0867)
OKLCHoklch(25.9% 0.087 267.9)
XYZxyz(2.0785, 1.6442, 7.2276)
Luminance0.0164 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121F4D #4D4012
analogous
#123C4D #121F4D #22124D
triadic
#121F4D #4D121F #1F4D12
tetradic
#121F4D #4D123C #4D4012 #124D22
square
#121F4D #4D123C #4D4012 #124D22
split-complementary
#121F4D #4D2212 #3C4D12
monochromatic
#060A19 #060B1B #121F4D #1E337F #2947B0

Accessibility & contrast

On white

15.80
#121F4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#121F4D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121F4D
15.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121F4D#FFFFFF#000000##FFFFFF
##121F4D1.0015.801.3315.80
#FFFFFF15.801.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00254F
Deuteranopia (green-blind)
#00204C
Tritanopia (blue-blind)
#002A32
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #121f4d;
/* rgb */ color: rgb(18, 31, 77);
/* oklch */ color: oklch(25.9% 0.087 267.9);
Tailwind
colors: {
  custom: {
    50: '#595a7f',
    500: '#121f4d',
    950: '#000000',
  },
}
SCSS
$custom: #121f4d;
$custom-light: #595a7f;
$custom-dark: #000000;
JSON
{
  "hex": "#121f4d",
  "rgb": {
    "r": 18,
    "g": 31,
    "b": 77
  },
  "hsl": {
    "h": 226.78,
    "s": 62.105,
    "l": 18.627
  },
  "oklch": {
    "l": 0.25899,
    "c": 0.08673,
    "h": 267.9
  },
  "luminance": 0.01644
}

Semantic roles & 50–950 ramp

primary
#121F4D
secondary
#867435
accent
#C143E5
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #121F4D

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

Preview Lab → · Contrast checker → · Palette generator →

#121F4D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva