#121E7F#121E7F

#121E7F is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.0% C 0.160 H 268.1°. Best body text is #FFFFFF at 13.84:1 contrast (WCAG AA passes).

Color values

HEX#121E7F
RGBrgb(18, 30, 127)
HSLhsl(233, 75%, 28%)
HSVhsv(233, 86%, 50%)
CMYKcmyk(85.8%, 76.4%, 0%, 50.2%)
CIE-LABlab(18.32, 33.55, -55.15)
CIE-LCHlch(18.32, 64.55, 301.31°)
OKLaboklab(30.97% -0.0052 -0.1599)
OKLCHoklch(30.97% 0.16 268.1)
XYZxyz(4.5432, 2.5889, 20.3348)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121E7F #7F7312
analogous
#12547F #121E7F #3C127F
triadic
#121E7F #7F121E #1E7F12
tetradic
#121E7F #7F1254 #7F7312 #127F3C
square
#121E7F #7F1254 #7F7312 #127F3C
split-complementary
#121E7F #7F3C12 #547F12
monochromatic
#04061B #0A1149 #121E7F #1A2BB5 #2B3FE1

Accessibility & contrast

On white

13.84
#121E7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#121E7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121E7F
13.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121E7F#FFFFFF#000000##FFFFFF
##121E7F1.0013.841.5213.84
#FFFFFF13.841.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003282
Deuteranopia (green-blind)
#00277D
Tritanopia (blue-blind)
#003A4D
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #121e7f;
/* rgb */ color: rgb(18, 30, 127);
/* oklch */ color: oklch(31.0% 0.160 268.1);
Tailwind
colors: {
  custom: {
    50: '#685ba5',
    500: '#121e7f',
    950: '#000000',
  },
}
SCSS
$custom: #121e7f;
$custom-light: #685ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#121e7f",
  "rgb": {
    "r": 18,
    "g": 30,
    "b": 127
  },
  "hsl": {
    "h": 233.394,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30971,
    "c": 0.15995,
    "h": 268.1
  },
  "luminance": 0.02589
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #121E7F

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

Preview Lab → · Contrast checker → · Palette generator →

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