#121E76#121E76

#121E76 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 29.9% C 0.148 H 268.4°. Best body text is #FFFFFF at 14.26:1 contrast (WCAG AA passes).

Color values

HEX#121E76
RGBrgb(18, 30, 118)
HSLhsl(233, 74%, 27%)
HSVhsv(233, 85%, 46%)
CMYKcmyk(84.7%, 74.6%, 0%, 53.7%)
CIE-LABlab(17.30, 30.15, -51.09)
CIE-LCHlch(17.30, 59.32, 300.55°)
OKLaboklab(29.94% -0.0041 -0.148)
OKLCHoklch(29.94% 0.148 268.4)
XYZxyz(3.9826, 2.3647, 17.3826)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121E76 #766A12
analogous
#125076 #121E76 #381276
triadic
#121E76 #76121E #1E7612
tetradic
#121E76 #761250 #766A12 #127638
square
#121E76 #761250 #766A12 #127638
split-complementary
#121E76 #763812 #507612
monochromatic
#04071B #0A1141 #121E76 #1A2CAB #253BDE

Accessibility & contrast

On white

14.26
#121E76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#121E76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121E76
14.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121E76#FFFFFF#000000##FFFFFF
##121E761.0014.261.4714.26
#FFFFFF14.261.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F79
Deuteranopia (green-blind)
#002674
Tritanopia (blue-blind)
#003748
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #121e76;
/* rgb */ color: rgb(18, 30, 118);
/* oklch */ color: oklch(29.9% 0.148 268.4);
Tailwind
colors: {
  custom: {
    50: '#655a9f',
    500: '#121e76',
    950: '#000000',
  },
}
SCSS
$custom: #121e76;
$custom-light: #655a9f;
$custom-dark: #000000;
JSON
{
  "hex": "#121e76",
  "rgb": {
    "r": 18,
    "g": 30,
    "b": 118
  },
  "hsl": {
    "h": 232.8,
    "s": 73.529,
    "l": 26.667
  },
  "oklch": {
    "l": 0.29937,
    "c": 0.14811,
    "h": 268.4
  },
  "luminance": 0.02365
}

Semantic roles & 50–950 ramp

primary
#121E76
secondary
#AD9E37
accent
#DA38F0
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040F
muted
#7A797E

Preview Lab

Preview with #121E76

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

Preview Lab → · Contrast checker → · Palette generator →

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