#121E42#121E42

#121E42 is a very dark, moderate blue. Relative luminance 0.015; OKLCH L 24.7% C 0.070 H 267.3°. Best body text is #FFFFFF at 16.28:1 contrast (WCAG AA passes).

Color values

HEX#121E42
RGBrgb(18, 30, 66)
HSLhsl(225, 57%, 16%)
HSVhsv(225, 73%, 26%)
CMYKcmyk(72.7%, 54.5%, 0%, 74.1%)
CIE-LABlab(12.29, 8.74, -24.45)
CIE-LCHlch(12.29, 25.97, 289.68°)
OKLaboklab(24.7% -0.0033 -0.07)
OKLCHoklch(24.7% 0.07 267.3)
XYZxyz(1.6968, 1.4503, 5.3437)
Luminance0.0145 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121E42 #423612
analogous
#123642 #121E42 #1E1242
triadic
#121E42 #42121E #1E4212
tetradic
#121E42 #421236 #423612 #12421E
square
#121E42 #421236 #423612 #12421E
split-complementary
#121E42 #421E12 #364212
monochromatic
#070B18 #070B18 #121E42 #1F3472 #2C4AA2

Accessibility & contrast

On white

16.28
#121E42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#121E42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121E42
16.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121E42#FFFFFF#000000##FFFFFF
##121E421.0016.281.2916.28
#FFFFFF16.281.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B2243
Deuteranopia (green-blind)
#031E41
Tritanopia (blue-blind)
#00262C
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #121e42;
/* rgb */ color: rgb(18, 30, 66);
/* oklch */ color: oklch(24.7% 0.070 267.3);
Tailwind
colors: {
  custom: {
    50: '#565977',
    500: '#121e42',
    950: '#000000',
  },
}
SCSS
$custom: #121e42;
$custom-light: #565977;
$custom-dark: #000000;
JSON
{
  "hex": "#121e42",
  "rgb": {
    "r": 18,
    "g": 30,
    "b": 66
  },
  "hsl": {
    "h": 225,
    "s": 57.143,
    "l": 16.471
  },
  "oklch": {
    "l": 0.24701,
    "c": 0.07008,
    "h": 267.3
  },
  "luminance": 0.0145
}

Semantic roles & 50–950 ramp

primary
#121E42
secondary
#7B6935
accent
#BA47E0
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030308
muted
#78787B

Preview Lab

Preview with #121E42

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

Preview Lab → · Contrast checker → · Palette generator →

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