#121F4B#121F4B

#121F4B is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.7% C 0.083 H 267.7°. Best body text is #FFFFFF at 15.87:1 contrast (WCAG AA passes).

Color values

HEX#121F4B
RGBrgb(18, 31, 75)
HSLhsl(226, 61%, 18%)
HSVhsv(226, 76%, 29%)
CMYKcmyk(76%, 58.7%, 0%, 70.6%)
CIE-LABlab(13.33, 11.82, -29.02)
CIE-LCHlch(13.33, 31.34, 292.17°)
OKLaboklab(25.72% -0.0033 -0.0834)
OKLCHoklch(25.72% 0.083 267.7)
XYZxyz(2.0090, 1.6164, 6.8614)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121F4B #4B3E12
analogous
#123B4B #121F4B #21124B
triadic
#121F4B #4B121F #1F4B12
tetradic
#121F4B #4B123B #4B3E12 #124B21
square
#121F4B #4B123B #4B3E12 #124B21
split-complementary
#121F4B #4B2112 #3B4B12
monochromatic
#060A19 #060B1A #121F4B #1E337C #2A48AE

Accessibility & contrast

On white

15.87
#121F4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#121F4B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121F4B
15.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121F4B#FFFFFF#000000##FFFFFF
##121F4B1.0015.871.3215.87
#FFFFFF15.871.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03254D
Deuteranopia (green-blind)
#00204A
Tritanopia (blue-blind)
#002A31
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #121f4b;
/* rgb */ color: rgb(18, 31, 75);
/* oklch */ color: oklch(25.7% 0.083 267.7);
Tailwind
colors: {
  custom: {
    50: '#585a7e',
    500: '#121f4b',
    950: '#000000',
  },
}
SCSS
$custom: #121f4b;
$custom-light: #585a7e;
$custom-dark: #000000;
JSON
{
  "hex": "#121f4b",
  "rgb": {
    "r": 18,
    "g": 31,
    "b": 75
  },
  "hsl": {
    "h": 226.316,
    "s": 61.29,
    "l": 18.235
  },
  "oklch": {
    "l": 0.2572,
    "c": 0.08349,
    "h": 267.7
  },
  "luminance": 0.01617
}

Semantic roles & 50–950 ramp

primary
#121F4B
secondary
#847235
accent
#C043E4
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #121F4B

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

Preview Lab → · Contrast checker → · Palette generator →

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