#121E7E#121E7E

#121E7E is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.9% C 0.159 H 268.2°. Best body text is #FFFFFF at 13.88:1 contrast (WCAG AA passes).

Color values

HEX#121E7E
RGBrgb(18, 30, 126)
HSLhsl(233, 75%, 28%)
HSVhsv(233, 86%, 49%)
CMYKcmyk(85.7%, 76.2%, 0%, 50.6%)
CIE-LABlab(18.20, 33.17, -54.71)
CIE-LCHlch(18.20, 63.98, 301.23°)
OKLaboklab(30.86% -0.0051 -0.1586)
OKLCHoklch(30.86% 0.159 268.2)
XYZxyz(4.4783, 2.5630, 19.9933)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121E7E #7E7212
analogous
#12547E #121E7E #3C127E
triadic
#121E7E #7E121E #1E7E12
tetradic
#121E7E #7E1254 #7E7212 #127E3C
square
#121E7E #7E1254 #7E7212 #127E3C
split-complementary
#121E7E #7E3C12 #547E12
monochromatic
#04061B #0A1148 #121E7E #1A2BB4 #2A3EE1

Accessibility & contrast

On white

13.88
#121E7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#121E7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121E7E
13.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121E7E#FFFFFF#000000##FFFFFF
##121E7E1.0013.881.5113.88
#FFFFFF13.881.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003281
Deuteranopia (green-blind)
#00277C
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #121e7e;
/* rgb */ color: rgb(18, 30, 126);
/* oklch */ color: oklch(30.9% 0.159 268.2);
Tailwind
colors: {
  custom: {
    50: '#675aa4',
    500: '#121e7e',
    950: '#000000',
  },
}
SCSS
$custom: #121e7e;
$custom-light: #675aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#121e7e",
  "rgb": {
    "r": 18,
    "g": 30,
    "b": 126
  },
  "hsl": {
    "h": 233.333,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.30855,
    "c": 0.15864,
    "h": 268.2
  },
  "luminance": 0.02564
}

Semantic roles & 50–950 ramp

primary
#121E7E
secondary
#B4A638
accent
#DD36F2
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #121E7E

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

Preview Lab → · Contrast checker → · Palette generator →

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