#121E52#121E52

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

Color values

HEX#121E52
RGBrgb(18, 30, 82)
HSLhsl(229, 64%, 20%)
HSVhsv(229, 78%, 32%)
CMYKcmyk(78%, 63.4%, 0%, 67.8%)
CIE-LABlab(13.63, 15.57, -33.33)
CIE-LCHlch(13.63, 36.78, 295.04°)
OKLaboklab(26.14% -0.0019 -0.0961)
OKLCHoklch(26.14% 0.096 268.9)
XYZxyz(2.2362, 1.6661, 8.1847)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121E52 #524612
analogous
#123E52 #121E52 #261252
triadic
#121E52 #52121E #1E5212
tetradic
#121E52 #52123E #524612 #125226
square
#121E52 #52123E #524612 #125226
split-complementary
#121E52 #522612 #3E5212
monochromatic
#060919 #070C20 #121E52 #1D3084 #2843B6

Accessibility & contrast

On white

15.75
#121E52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#121E52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121E52
15.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121E52#FFFFFF#000000##FFFFFF
##121E521.0015.751.3315.75
#FFFFFF15.751.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002654
Deuteranopia (green-blind)
#002051
Tritanopia (blue-blind)
#002B34
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #121e52;
/* rgb */ color: rgb(18, 30, 82);
/* oklch */ color: oklch(26.1% 0.096 268.9);
Tailwind
colors: {
  custom: {
    50: '#5a5983',
    500: '#121e52',
    950: '#000000',
  },
}
SCSS
$custom: #121e52;
$custom-light: #5a5983;
$custom-dark: #000000;
JSON
{
  "hex": "#121e52",
  "rgb": {
    "r": 18,
    "g": 30,
    "b": 82
  },
  "hsl": {
    "h": 228.75,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.26135,
    "c": 0.09612,
    "h": 268.9
  },
  "luminance": 0.01666
}

Semantic roles & 50–950 ramp

primary
#121E52
secondary
#8B7B35
accent
#C841E7
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030B
muted
#79787C

Preview Lab

Preview with #121E52

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

Preview Lab → · Contrast checker → · Palette generator →

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