#121F42#121F42

#121F42 is a very dark, moderate blue. Relative luminance 0.015; OKLCH L 25.0% C 0.069 H 266.2°. Best body text is #FFFFFF at 16.15:1 contrast (WCAG AA passes).

Color values

HEX#121F42
RGBrgb(18, 31, 66)
HSLhsl(224, 57%, 16%)
HSVhsv(224, 73%, 26%)
CMYKcmyk(72.7%, 53%, 0%, 74.1%)
CIE-LABlab(12.62, 7.97, -23.92)
CIE-LCHlch(12.62, 25.21, 288.44°)
OKLaboklab(24.95% -0.0045 -0.0684)
OKLCHoklch(24.95% 0.069 266.2)
XYZxyz(1.7225, 1.5018, 5.3523)
Luminance0.0150 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121F42 #423512
analogous
#123742 #121F42 #1D1242
triadic
#121F42 #42121F #1F4212
tetradic
#121F42 #421237 #423512 #12421D
square
#121F42 #421237 #423512 #12421D
split-complementary
#121F42 #421D12 #374212
monochromatic
#070B18 #070B18 #121F42 #1F3672 #2C4CA2

Accessibility & contrast

On white

16.15
#121F42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#121F42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121F42
16.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121F42#FFFFFF#000000##FFFFFF
##121F421.0016.151.3016.15
#FFFFFF16.151.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D2343
Deuteranopia (green-blind)
#051F41
Tritanopia (blue-blind)
#00272D
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #121f42;
/* rgb */ color: rgb(18, 31, 66);
/* oklch */ color: oklch(25.0% 0.069 266.2);
Tailwind
colors: {
  custom: {
    50: '#565a76',
    500: '#121f42',
    950: '#000000',
  },
}
SCSS
$custom: #121f42;
$custom-light: #565a76;
$custom-dark: #000000;
JSON
{
  "hex": "#121f42",
  "rgb": {
    "r": 18,
    "g": 31,
    "b": 66
  },
  "hsl": {
    "h": 223.75,
    "s": 57.143,
    "l": 16.471
  },
  "oklch": {
    "l": 0.24953,
    "c": 0.06857,
    "h": 266.2
  },
  "luminance": 0.01502
}

Semantic roles & 50–950 ramp

primary
#121F42
secondary
#7B6835
accent
#B747E0
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030308
muted
#78787B

Preview Lab

Preview with #121F42

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

Preview Lab → · Contrast checker → · Palette generator →

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