#121E5A#121E5A

#121E5A is a dark, moderate blue. Relative luminance 0.018; OKLCH L 26.9% C 0.108 H 269.0°. Best body text is #FFFFFF at 15.45:1 contrast (WCAG AA passes).

Color values

HEX#121E5A
RGBrgb(18, 30, 90)
HSLhsl(230, 67%, 21%)
HSVhsv(230, 80%, 35%)
CMYKcmyk(80%, 66.7%, 0%, 64.7%)
CIE-LABlab(14.37, 18.93, -37.51)
CIE-LCHlch(14.37, 42.02, 296.78°)
OKLaboklab(26.92% -0.0019 -0.1084)
OKLCHoklch(26.92% 0.108 269)
XYZxyz(2.5586, 1.7951, 9.8825)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121E5A #5A4E12
analogous
#12425A #121E5A #2A125A
triadic
#121E5A #5A121E #1E5A12
tetradic
#121E5A #5A1242 #5A4E12 #125A2A
square
#121E5A #5A1242 #5A4E12 #125A2A
split-complementary
#121E5A #5A2A12 #425A12
monochromatic
#05081A #080D27 #121E5A #1C2F8D #2640C0

Accessibility & contrast

On white

15.45
#121E5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#121E5A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121E5A
15.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121E5A#FFFFFF#000000##FFFFFF
##121E5A1.0015.451.3615.45
#FFFFFF15.451.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285C
Deuteranopia (green-blind)
#002159
Tritanopia (blue-blind)
#002D38
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #121e5a;
/* rgb */ color: rgb(18, 30, 90);
/* oklch */ color: oklch(26.9% 0.108 269.0);
Tailwind
colors: {
  custom: {
    50: '#5d5989',
    500: '#121e5a',
    950: '#000000',
  },
}
SCSS
$custom: #121e5a;
$custom-light: #5d5989;
$custom-dark: #000000;
JSON
{
  "hex": "#121e5a",
  "rgb": {
    "r": 18,
    "g": 30,
    "b": 90
  },
  "hsl": {
    "h": 230,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.26921,
    "c": 0.10841,
    "h": 269
  },
  "luminance": 0.01795
}

Semantic roles & 50–950 ramp

primary
#121E5A
secondary
#938335
accent
#CD3EEA
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #121E5A

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

Preview Lab → · Contrast checker → · Palette generator →

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