#121871#121871

#121871 is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.4% C 0.148 H 269.6°. Best body text is #FFFFFF at 15.06:1 contrast (WCAG AA passes).

Color values

HEX#121871
RGBrgb(18, 24, 113)
HSLhsl(236, 73%, 26%)
HSVhsv(236, 84%, 44%)
CMYKcmyk(84.1%, 78.8%, 0%, 55.7%)
CIE-LABlab(15.35, 32.10, -51.08)
CIE-LCHlch(15.35, 60.33, 302.15°)
OKLaboklab(28.38% -0.0011 -0.148)
OKLCHoklch(28.38% 0.148 269.6)
XYZxyz(3.5557, 1.9737, 15.8131)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121871 #716B12
analogous
#124771 #121871 #3C1271
triadic
#121871 #711218 #187112
tetradic
#121871 #711247 #716B12 #12713C
square
#121871 #711247 #716B12 #12713C
split-complementary
#121871 #713C12 #477112
monochromatic
#04061A #0A0D3C #121871 #1A23A6 #232EDB

Accessibility & contrast

On white

15.06
#121871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#121871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121871
15.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121871#FFFFFF#000000##FFFFFF
##1218711.0015.061.3915.06
#FFFFFF15.061.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B74
Deuteranopia (green-blind)
#00226F
Tritanopia (blue-blind)
#003243
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #121871;
/* rgb */ color: rgb(18, 24, 113);
/* oklch */ color: oklch(28.4% 0.148 269.6);
Tailwind
colors: {
  custom: {
    50: '#64569b',
    500: '#121871',
    950: '#000000',
  },
}
SCSS
$custom: #121871;
$custom-light: #64569b;
$custom-dark: #000000;
JSON
{
  "hex": "#121871",
  "rgb": {
    "r": 18,
    "g": 24,
    "b": 113
  },
  "hsl": {
    "h": 236.211,
    "s": 72.519,
    "l": 25.686
  },
  "oklch": {
    "l": 0.28375,
    "c": 0.14797,
    "h": 269.6
  },
  "luminance": 0.01974
}

Semantic roles & 50–950 ramp

primary
#121871
secondary
#A8A137
accent
#E439EF
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030E
muted
#7A787E

Preview Lab

Preview with #121871

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

Preview Lab → · Contrast checker → · Palette generator →

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