#121E71#121E71

#121E71 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.4% C 0.141 H 268.6°. Best body text is #FFFFFF at 14.48:1 contrast (WCAG AA passes).

Color values

HEX#121E71
RGBrgb(18, 30, 113)
HSLhsl(232, 73%, 26%)
HSVhsv(232, 84%, 44%)
CMYKcmyk(84.1%, 73.5%, 0%, 55.7%)
CIE-LABlab(16.74, 28.22, -48.78)
CIE-LCHlch(16.74, 56.35, 300.05°)
OKLaboklab(29.37% -0.0035 -0.1413)
OKLCHoklch(29.37% 0.141 268.6)
XYZxyz(3.6933, 2.2490, 15.8590)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121E71 #716512
analogous
#124D71 #121E71 #351271
triadic
#121E71 #71121E #1E7112
tetradic
#121E71 #71124D #716512 #127135
square
#121E71 #71124D #716512 #127135
split-complementary
#121E71 #713512 #4D7112
monochromatic
#04071A #0A103C #121E71 #1A2CA6 #233ADB

Accessibility & contrast

On white

14.48
#121E71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#121E71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121E71
14.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121E71#FFFFFF#000000##FFFFFF
##121E711.0014.481.4514.48
#FFFFFF14.481.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E74
Deuteranopia (green-blind)
#00256F
Tritanopia (blue-blind)
#003545
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #121e71;
/* rgb */ color: rgb(18, 30, 113);
/* oklch */ color: oklch(29.4% 0.141 268.6);
Tailwind
colors: {
  custom: {
    50: '#635a9b',
    500: '#121e71',
    950: '#000000',
  },
}
SCSS
$custom: #121e71;
$custom-light: #635a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#121e71",
  "rgb": {
    "r": 18,
    "g": 30,
    "b": 113
  },
  "hsl": {
    "h": 232.421,
    "s": 72.519,
    "l": 25.686
  },
  "oklch": {
    "l": 0.29373,
    "c": 0.14135,
    "h": 268.6
  },
  "luminance": 0.02249
}

Semantic roles & 50–950 ramp

primary
#121E71
secondary
#A89A37
accent
#D839EF
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030E
muted
#7A787E

Preview Lab

Preview with #121E71

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

Preview Lab → · Contrast checker → · Palette generator →

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