#121E57#121E57

#121E57 is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.6% C 0.104 H 269.0°. Best body text is #FFFFFF at 15.57:1 contrast (WCAG AA passes).

Color values

HEX#121E57
RGBrgb(18, 30, 87)
HSLhsl(230, 66%, 21%)
HSVhsv(230, 79%, 34%)
CMYKcmyk(79.3%, 65.5%, 0%, 65.9%)
CIE-LABlab(14.09, 17.68, -35.96)
CIE-LCHlch(14.09, 40.07, 296.18°)
OKLaboklab(26.62% -0.0019 -0.1038)
OKLCHoklch(26.62% 0.104 269)
XYZxyz(2.4334, 1.7450, 9.2235)
Luminance0.0175 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121E57 #574B12
analogous
#124057 #121E57 #281257
triadic
#121E57 #57121E #1E5712
tetradic
#121E57 #571240 #574B12 #125728
square
#121E57 #571240 #574B12 #125728
split-complementary
#121E57 #572812 #405712
monochromatic
#050919 #080D24 #121E57 #1C2F8A #2741BC

Accessibility & contrast

On white

15.57
#121E57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#121E57 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121E57
15.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121E57#FFFFFF#000000##FFFFFF
##121E571.0015.571.3515.57
#FFFFFF15.571.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002759
Deuteranopia (green-blind)
#002156
Tritanopia (blue-blind)
#002C37
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #121e57;
/* rgb */ color: rgb(18, 30, 87);
/* oklch */ color: oklch(26.6% 0.104 269.0);
Tailwind
colors: {
  custom: {
    50: '#5c5987',
    500: '#121e57',
    950: '#000000',
  },
}
SCSS
$custom: #121e57;
$custom-light: #5c5987;
$custom-dark: #000000;
JSON
{
  "hex": "#121e57",
  "rgb": {
    "r": 18,
    "g": 30,
    "b": 87
  },
  "hsl": {
    "h": 229.565,
    "s": 65.714,
    "l": 20.588
  },
  "oklch": {
    "l": 0.26621,
    "c": 0.10386,
    "h": 269
  },
  "luminance": 0.01745
}

Semantic roles & 50–950 ramp

primary
#121E57
secondary
#908035
accent
#CB3FE9
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030B
muted
#79787C

Preview Lab

Preview with #121E57

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

Preview Lab → · Contrast checker → · Palette generator →

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