#121971#121971

#121971 is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.5% C 0.147 H 269.4°. Best body text is #FFFFFF at 14.97:1 contrast (WCAG AA passes).

Color values

HEX#121971
RGBrgb(18, 25, 113)
HSLhsl(236, 73%, 26%)
HSVhsv(236, 84%, 44%)
CMYKcmyk(84.1%, 77.9%, 0%, 55.7%)
CIE-LABlab(15.57, 31.48, -50.71)
CIE-LCHlch(15.57, 59.69, 301.83°)
OKLaboklab(28.53% -0.0014 -0.1469)
OKLCHoklch(28.53% 0.147 269.4)
XYZxyz(3.5767, 2.0157, 15.8201)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121971 #716A12
analogous
#124871 #121971 #3A1271
triadic
#121971 #711219 #197112
tetradic
#121971 #711248 #716A12 #12713A
square
#121971 #711248 #716A12 #12713A
split-complementary
#121971 #713A12 #487112
monochromatic
#04061A #0A0D3C #121971 #1A25A6 #2330DB

Accessibility & contrast

On white

14.97
#121971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#121971 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121971
14.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121971#FFFFFF#000000##FFFFFF
##1219711.0014.971.4014.97
#FFFFFF14.971.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C74
Deuteranopia (green-blind)
#00226F
Tritanopia (blue-blind)
#003343
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #121971;
/* rgb */ color: rgb(18, 25, 113);
/* oklch */ color: oklch(28.5% 0.147 269.4);
Tailwind
colors: {
  custom: {
    50: '#64569b',
    500: '#121971',
    950: '#000000',
  },
}
SCSS
$custom: #121971;
$custom-light: #64569b;
$custom-dark: #000000;
JSON
{
  "hex": "#121971",
  "rgb": {
    "r": 18,
    "g": 25,
    "b": 113
  },
  "hsl": {
    "h": 235.579,
    "s": 72.519,
    "l": 25.686
  },
  "oklch": {
    "l": 0.28532,
    "c": 0.14693,
    "h": 269.4
  },
  "luminance": 0.02016
}

Semantic roles & 50–950 ramp

primary
#121971
secondary
#A8A037
accent
#E239EF
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030E
muted
#7A787E

Preview Lab

Preview with #121971

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

Preview Lab → · Contrast checker → · Palette generator →

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