#121D42#121D42

#121D42 is a very dark, moderate blue. Relative luminance 0.014; OKLCH L 24.5% C 0.072 H 268.3°. Best body text is #FFFFFF at 16.40:1 contrast (WCAG AA passes).

Color values

HEX#121D42
RGBrgb(18, 29, 66)
HSLhsl(226, 57%, 16%)
HSVhsv(226, 73%, 26%)
CMYKcmyk(72.7%, 56.1%, 0%, 74.1%)
CIE-LABlab(11.96, 9.51, -24.98)
CIE-LCHlch(11.96, 26.73, 290.85°)
OKLaboklab(24.45% -0.0022 -0.0716)
OKLCHoklch(24.45% 0.072 268.3)
XYZxyz(1.6719, 1.4005, 5.3354)
Luminance0.0140 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121D42 #423712
analogous
#123542 #121D42 #1F1242
triadic
#121D42 #42121D #1D4212
tetradic
#121D42 #421235 #423712 #12421F
square
#121D42 #421235 #423712 #12421F
split-complementary
#121D42 #421F12 #354212
monochromatic
#070B18 #070B18 #121D42 #1F3272 #2C47A2

Accessibility & contrast

On white

16.40
#121D42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#121D42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121D42
16.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121D42#FFFFFF#000000##FFFFFF
##121D421.0016.401.2816.40
#FFFFFF16.401.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#092243
Deuteranopia (green-blind)
#011D41
Tritanopia (blue-blind)
#00262C
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #121d42;
/* rgb */ color: rgb(18, 29, 66);
/* oklch */ color: oklch(24.5% 0.072 268.3);
Tailwind
colors: {
  custom: {
    50: '#565877',
    500: '#121d42',
    950: '#000000',
  },
}
SCSS
$custom: #121d42;
$custom-light: #565877;
$custom-dark: #000000;
JSON
{
  "hex": "#121d42",
  "rgb": {
    "r": 18,
    "g": 29,
    "b": 66
  },
  "hsl": {
    "h": 226.25,
    "s": 57.143,
    "l": 16.471
  },
  "oklch": {
    "l": 0.24451,
    "c": 0.07159,
    "h": 268.3
  },
  "luminance": 0.01401
}

Semantic roles & 50–950 ramp

primary
#121D42
secondary
#7B6B35
accent
#BD47E0
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030308
muted
#78787B

Preview Lab

Preview with #121D42

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

Preview Lab → · Contrast checker → · Palette generator →

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