#121E4F#121E4F

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

Color values

HEX#121E4F
RGBrgb(18, 30, 79)
HSLhsl(228, 63%, 19%)
HSVhsv(228, 77%, 31%)
CMYKcmyk(77.2%, 62%, 0%, 69%)
CIE-LABlab(13.36, 14.29, -31.71)
CIE-LCHlch(13.36, 34.79, 294.26°)
OKLaboklab(25.85% -0.002 -0.0914)
OKLCHoklch(25.85% 0.091 268.7)
XYZxyz(2.1245, 1.6214, 7.5966)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121E4F #4F4312
analogous
#123D4F #121E4F #25124F
triadic
#121E4F #4F121E #1E4F12
tetradic
#121E4F #4F123D #4F4312 #124F25
square
#121E4F #4F123D #4F4312 #124F25
split-complementary
#121E4F #4F2512 #3D4F12
monochromatic
#060919 #070B1D #121E4F #1D3181 #2944B3

Accessibility & contrast

On white

15.86
#121E4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #121E4F
15.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121E4F#FFFFFF#000000##FFFFFF
##121E4F1.0015.861.3215.86
#FFFFFF15.861.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002551
Deuteranopia (green-blind)
#00204E
Tritanopia (blue-blind)
#002A33
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #121e4f;
/* rgb */ color: rgb(18, 30, 79);
/* oklch */ color: oklch(25.9% 0.091 268.7);
Tailwind
colors: {
  custom: {
    50: '#595981',
    500: '#121e4f',
    950: '#000000',
  },
}
SCSS
$custom: #121e4f;
$custom-light: #595981;
$custom-dark: #000000;
JSON
{
  "hex": "#121e4f",
  "rgb": {
    "r": 18,
    "g": 30,
    "b": 79
  },
  "hsl": {
    "h": 228.197,
    "s": 62.887,
    "l": 19.02
  },
  "oklch": {
    "l": 0.25851,
    "c": 0.09138,
    "h": 268.7
  },
  "luminance": 0.01622
}

Semantic roles & 50–950 ramp

primary
#121E4F
secondary
#887835
accent
#C642E6
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #121E4F

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

Preview Lab → · Contrast checker → · Palette generator →

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