#121945#121945

#121945 is a very dark, moderate blue. Relative luminance 0.013; OKLCH L 23.8% C 0.083 H 271.8°. Best body text is #FFFFFF at 16.79:1 contrast (WCAG AA passes).

Color values

HEX#121945
RGBrgb(18, 25, 69)
HSLhsl(232, 59%, 17%)
HSVhsv(232, 74%, 27%)
CMYKcmyk(73.9%, 63.8%, 0%, 72.9%)
CIE-LABlab(10.95, 13.86, -28.72)
CIE-LCHlch(10.95, 31.89, 295.77°)
OKLaboklab(23.77% 0.0025 -0.0826)
OKLCHoklch(23.77% 0.083 271.8)
XYZxyz(1.6709, 1.2534, 5.7829)
Luminance0.0125 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121945 #453E12
analogous
#123345 #121945 #251245
triadic
#121945 #451219 #194512
tetradic
#121945 #451233 #453E12 #124525
square
#121945 #451233 #453E12 #124525
split-complementary
#121945 #452512 #334512
monochromatic
#060918 #060918 #121945 #1F2B76 #2B3CA6

Accessibility & contrast

On white

16.79
#121945 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#121945 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121945
16.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121945#FFFFFF#000000##FFFFFF
##1219451.0016.791.2516.79
#FFFFFF16.791.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002046
Deuteranopia (green-blind)
#001B44
Tritanopia (blue-blind)
#00242C
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #121945;
/* rgb */ color: rgb(18, 25, 69);
/* oklch */ color: oklch(23.8% 0.083 271.8);
Tailwind
colors: {
  custom: {
    50: '#575579',
    500: '#121945',
    950: '#000000',
  },
}
SCSS
$custom: #121945;
$custom-light: #575579;
$custom-dark: #000000;
JSON
{
  "hex": "#121945",
  "rgb": {
    "r": 18,
    "g": 25,
    "b": 69
  },
  "hsl": {
    "h": 231.765,
    "s": 58.621,
    "l": 17.059
  },
  "oklch": {
    "l": 0.23766,
    "c": 0.08268,
    "h": 271.8
  },
  "luminance": 0.01254
}

Semantic roles & 50–950 ramp

primary
#121945
secondary
#7E7435
accent
#CC46E2
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030309
muted
#78787B

Preview Lab

Preview with #121945

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

Preview Lab → · Contrast checker → · Palette generator →

#121945 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva