#121E54#121E54

#121E54 is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.3% C 0.099 H 268.9°. Best body text is #FFFFFF at 15.68:1 contrast (WCAG AA passes).

Color values

HEX#121E54
RGBrgb(18, 30, 84)
HSLhsl(229, 65%, 20%)
HSVhsv(229, 79%, 33%)
CMYKcmyk(78.6%, 64.3%, 0%, 67.1%)
CIE-LABlab(13.81, 16.41, -34.39)
CIE-LCHlch(13.81, 38.10, 295.52°)
OKLaboklab(26.33% -0.0019 -0.0992)
OKLCHoklch(26.33% 0.099 268.9)
XYZxyz(2.3134, 1.6970, 8.5914)
Luminance0.0170 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121E54 #544812
analogous
#123F54 #121E54 #271254
triadic
#121E54 #54121E #1E5412
tetradic
#121E54 #54123F #544812 #125427
square
#121E54 #54123F #544812 #125427
split-complementary
#121E54 #542712 #3F5412
monochromatic
#050919 #070C22 #121E54 #1D3086 #2842B9

Accessibility & contrast

On white

15.68
#121E54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#121E54 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121E54
15.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121E54#FFFFFF#000000##FFFFFF
##121E541.0015.681.3415.68
#FFFFFF15.681.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002656
Deuteranopia (green-blind)
#002053
Tritanopia (blue-blind)
#002C35
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #121e54;
/* rgb */ color: rgb(18, 30, 84);
/* oklch */ color: oklch(26.3% 0.099 268.9);
Tailwind
colors: {
  custom: {
    50: '#5b5985',
    500: '#121e54',
    950: '#000000',
  },
}
SCSS
$custom: #121e54;
$custom-light: #5b5985;
$custom-dark: #000000;
JSON
{
  "hex": "#121e54",
  "rgb": {
    "r": 18,
    "g": 30,
    "b": 84
  },
  "hsl": {
    "h": 229.091,
    "s": 64.706,
    "l": 20
  },
  "oklch": {
    "l": 0.26327,
    "c": 0.09924,
    "h": 268.9
  },
  "luminance": 0.01697
}

Semantic roles & 50–950 ramp

primary
#121E54
secondary
#8D7D35
accent
#C940E8
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030B
muted
#79787C

Preview Lab

Preview with #121E54

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

Preview Lab → · Contrast checker → · Palette generator →

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