#121876#121876

#121876 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.0% C 0.154 H 269.3°. Best body text is #FFFFFF at 14.81:1 contrast (WCAG AA passes).

Color values

HEX#121876
RGBrgb(18, 24, 118)
HSLhsl(236, 74%, 27%)
HSVhsv(236, 85%, 46%)
CMYKcmyk(84.7%, 79.7%, 0%, 53.7%)
CIE-LABlab(15.95, 33.93, -53.32)
CIE-LCHlch(15.95, 63.20, 302.47°)
OKLaboklab(28.98% -0.0019 -0.1545)
OKLCHoklch(28.98% 0.154 269.3)
XYZxyz(3.8450, 2.0894, 17.3367)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121876 #767012
analogous
#124A76 #121876 #3E1276
triadic
#121876 #761218 #187612
tetradic
#121876 #76124A #767012 #12763E
square
#121876 #76124A #767012 #12763E
split-complementary
#121876 #763E12 #4A7612
monochromatic
#04051B #0A0D41 #121876 #1A23AB #2530DE

Accessibility & contrast

On white

14.81
#121876 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#121876 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121876
14.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121876#FFFFFF#000000##FFFFFF
##1218761.0014.811.4214.81
#FFFFFF14.811.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D79
Deuteranopia (green-blind)
#002374
Tritanopia (blue-blind)
#003446
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #121876;
/* rgb */ color: rgb(18, 24, 118);
/* oklch */ color: oklch(29.0% 0.154 269.3);
Tailwind
colors: {
  custom: {
    50: '#66569f',
    500: '#121876',
    950: '#000000',
  },
}
SCSS
$custom: #121876;
$custom-light: #66569f;
$custom-dark: #000000;
JSON
{
  "hex": "#121876",
  "rgb": {
    "r": 18,
    "g": 24,
    "b": 118
  },
  "hsl": {
    "h": 236.4,
    "s": 73.529,
    "l": 26.667
  },
  "oklch": {
    "l": 0.28977,
    "c": 0.15447,
    "h": 269.3
  },
  "luminance": 0.0209
}

Semantic roles & 50–950 ramp

primary
#121876
secondary
#ADA537
accent
#E538F0
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030F
muted
#7A787E

Preview Lab

Preview with #121876

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

Preview Lab → · Contrast checker → · Palette generator →

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