#121E40#121E40

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

Color values

HEX#121E40
RGBrgb(18, 30, 64)
HSLhsl(224, 56%, 16%)
HSVhsv(224, 72%, 25%)
CMYKcmyk(71.9%, 53.1%, 0%, 74.9%)
CIE-LABlab(12.14, 7.89, -23.29)
CIE-LCHlch(12.14, 24.59, 288.71°)
OKLaboklab(24.54% -0.0037 -0.0666)
OKLCHoklch(24.54% 0.067 266.8)
XYZxyz(1.6388, 1.4272, 5.0386)
Luminance0.0143 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121E40 #403412
analogous
#123540 #121E40 #1D1240
triadic
#121E40 #40121E #1E4012
tetradic
#121E40 #401235 #403412 #12401D
square
#121E40 #401235 #403412 #12401D
split-complementary
#121E40 #401D12 #354012
monochromatic
#070B18 #070B18 #121E40 #1F3470 #2D4BA0

Accessibility & contrast

On white

16.34
#121E40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #121E40
16.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121E40#FFFFFF#000000##FFFFFF
##121E401.0016.341.2916.34
#FFFFFF16.341.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D2241
Deuteranopia (green-blind)
#061E3F
Tritanopia (blue-blind)
#00262B
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #121e40;
/* rgb */ color: rgb(18, 30, 64);
/* oklch */ color: oklch(24.5% 0.067 266.8);
Tailwind
colors: {
  custom: {
    50: '#565975',
    500: '#121e40',
    950: '#000000',
  },
}
SCSS
$custom: #121e40;
$custom-light: #565975;
$custom-dark: #000000;
JSON
{
  "hex": "#121e40",
  "rgb": {
    "r": 18,
    "g": 30,
    "b": 64
  },
  "hsl": {
    "h": 224.348,
    "s": 56.098,
    "l": 16.078
  },
  "oklch": {
    "l": 0.24536,
    "c": 0.06668,
    "h": 266.8
  },
  "luminance": 0.01427
}

Semantic roles & 50–950 ramp

primary
#121E40
secondary
#796735
accent
#B848DF
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030308
muted
#78787B

Preview Lab

Preview with #121E40

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

Preview Lab → · Contrast checker → · Palette generator →

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