#121D40#121D40

#121D40 is a very dark, moderate blue. Relative luminance 0.014; OKLCH L 24.3% C 0.068 H 267.9°. Best body text is #FFFFFF at 16.47:1 contrast (WCAG AA passes).

Color values

HEX#121D40
RGBrgb(18, 29, 64)
HSLhsl(226, 56%, 16%)
HSVhsv(226, 72%, 25%)
CMYKcmyk(71.9%, 54.7%, 0%, 74.9%)
CIE-LABlab(11.81, 8.66, -23.82)
CIE-LCHlch(11.81, 25.35, 289.97°)
OKLaboklab(24.28% -0.0025 -0.0682)
OKLCHoklch(24.28% 0.068 267.9)
XYZxyz(1.6139, 1.3774, 5.0303)
Luminance0.0138 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121D40 #403512
analogous
#123440 #121D40 #1E1240
triadic
#121D40 #40121D #1D4012
tetradic
#121D40 #401234 #403512 #12401E
square
#121D40 #401234 #403512 #12401E
split-complementary
#121D40 #401E12 #344012
monochromatic
#070B18 #070B18 #121D40 #1F3370 #2D48A0

Accessibility & contrast

On white

16.47
#121D40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #121D40
16.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121D40#FFFFFF#000000##FFFFFF
##121D401.0016.471.2816.47
#FFFFFF16.471.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B2141
Deuteranopia (green-blind)
#041D3F
Tritanopia (blue-blind)
#00252B
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #121d40;
/* rgb */ color: rgb(18, 29, 64);
/* oklch */ color: oklch(24.3% 0.068 267.9);
Tailwind
colors: {
  custom: {
    50: '#565875',
    500: '#121d40',
    950: '#000000',
  },
}
SCSS
$custom: #121d40;
$custom-light: #565875;
$custom-dark: #000000;
JSON
{
  "hex": "#121d40",
  "rgb": {
    "r": 18,
    "g": 29,
    "b": 64
  },
  "hsl": {
    "h": 225.652,
    "s": 56.098,
    "l": 16.078
  },
  "oklch": {
    "l": 0.24284,
    "c": 0.0682,
    "h": 267.9
  },
  "luminance": 0.01377
}

Semantic roles & 50–950 ramp

primary
#121D40
secondary
#796935
accent
#BB48DF
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030308
muted
#78787B

Preview Lab

Preview with #121D40

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

Preview Lab → · Contrast checker → · Palette generator →

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