#121E5F#121E5F

#121E5F is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.4% C 0.116 H 269.0°. Best body text is #FFFFFF at 15.25:1 contrast (WCAG AA passes).

Color values

HEX#121E5F
RGBrgb(18, 30, 95)
HSLhsl(231, 68%, 22%)
HSVhsv(231, 81%, 37%)
CMYKcmyk(81.1%, 68.4%, 0%, 62.7%)
CIE-LABlab(14.86, 21.00, -40.06)
CIE-LCHlch(14.86, 45.23, 297.67°)
OKLaboklab(27.43% -0.0021 -0.1158)
OKLCHoklch(27.43% 0.116 269)
XYZxyz(2.7786, 1.8831, 11.0413)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121E5F #5F5312
analogous
#12455F #121E5F #2C125F
triadic
#121E5F #5F121E #1E5F12
tetradic
#121E5F #5F1245 #5F5312 #125F2C
square
#121E5F #5F1245 #5F5312 #125F2C
split-complementary
#121E5F #5F2C12 #455F12
monochromatic
#05081A #080E2C #121E5F #1C2E92 #253EC6

Accessibility & contrast

On white

15.25
#121E5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#121E5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121E5F
15.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121E5F#FFFFFF#000000##FFFFFF
##121E5F1.0015.251.3815.25
#FFFFFF15.251.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002961
Deuteranopia (green-blind)
#00225E
Tritanopia (blue-blind)
#002F3B
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #121e5f;
/* rgb */ color: rgb(18, 30, 95);
/* oklch */ color: oklch(27.4% 0.116 269.0);
Tailwind
colors: {
  custom: {
    50: '#5e598d',
    500: '#121e5f',
    950: '#000000',
  },
}
SCSS
$custom: #121e5f;
$custom-light: #5e598d;
$custom-dark: #000000;
JSON
{
  "hex": "#121e5f",
  "rgb": {
    "r": 18,
    "g": 30,
    "b": 95
  },
  "hsl": {
    "h": 230.649,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.27431,
    "c": 0.11586,
    "h": 269
  },
  "luminance": 0.01883
}

Semantic roles & 50–950 ramp

primary
#121E5F
secondary
#978836
accent
#D03DEB
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #121E5F

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

Preview Lab → · Contrast checker → · Palette generator →

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