#121872#121872

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

Color values

HEX#121872
RGBrgb(18, 24, 114)
HSLhsl(236, 73%, 26%)
HSVhsv(236, 84%, 45%)
CMYKcmyk(84.2%, 78.9%, 0%, 55.3%)
CIE-LABlab(15.47, 32.47, -51.53)
CIE-LCHlch(15.47, 60.90, 302.21°)
OKLaboklab(28.49% -0.0012 -0.1493)
OKLCHoklch(28.49% 0.149 269.5)
XYZxyz(3.6123, 1.9964, 16.1113)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121872 #726C12
analogous
#124872 #121872 #3C1272
triadic
#121872 #721218 #187212
tetradic
#121872 #721248 #726C12 #12723C
square
#121872 #721248 #726C12 #12723C
split-complementary
#121872 #723C12 #487212
monochromatic
#04061A #0A0D3D #121872 #1A23A7 #232EDC

Accessibility & contrast

On white

15.01
#121872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #121872
15.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121872#FFFFFF#000000##FFFFFF
##1218721.0015.011.4015.01
#FFFFFF15.011.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B75
Deuteranopia (green-blind)
#002270
Tritanopia (blue-blind)
#003344
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #121872;
/* rgb */ color: rgb(18, 24, 114);
/* oklch */ color: oklch(28.5% 0.149 269.5);
Tailwind
colors: {
  custom: {
    50: '#64569c',
    500: '#121872',
    950: '#000000',
  },
}
SCSS
$custom: #121872;
$custom-light: #64569c;
$custom-dark: #000000;
JSON
{
  "hex": "#121872",
  "rgb": {
    "r": 18,
    "g": 24,
    "b": 114
  },
  "hsl": {
    "h": 236.25,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.28495,
    "c": 0.14929,
    "h": 269.5
  },
  "luminance": 0.01997
}

Semantic roles & 50–950 ramp

primary
#121872
secondary
#A9A237
accent
#E438EF
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #121872

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

Preview Lab → · Contrast checker → · Palette generator →

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