#121474#121474

#121474 is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.2% C 0.156 H 269.9°. Best body text is #FFFFFF at 15.24:1 contrast (WCAG AA passes).

Color values

HEX#121474
RGBrgb(18, 20, 116)
HSLhsl(239, 73%, 26%)
HSVhsv(239, 84%, 45%)
CMYKcmyk(84.5%, 82.8%, 0%, 54.5%)
CIE-LABlab(14.90, 35.53, -53.77)
CIE-LCHlch(14.90, 64.45, 303.46°)
OKLaboklab(28.16% -0.0004 -0.1557)
OKLCHoklch(28.16% 0.156 269.9)
XYZxyz(3.6509, 1.8894, 16.6919)
Luminance0.0189 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121474 #747212
analogous
#124574 #121474 #411274
triadic
#121474 #741214 #147412
tetradic
#121474 #741245 #747212 #127441
square
#121474 #741245 #747212 #127441
split-complementary
#121474 #744112 #457412
monochromatic
#04051A #0A0B3F #121474 #1A1DA9 #2327DD

Accessibility & contrast

On white

15.24
#121474 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#121474 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121474
15.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121474#FFFFFF#000000##FFFFFF
##1214741.0015.241.3815.24
#FFFFFF15.241.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A77
Deuteranopia (green-blind)
#002072
Tritanopia (blue-blind)
#003244
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #121474;
/* rgb */ color: rgb(18, 20, 116);
/* oklch */ color: oklch(28.2% 0.156 269.9);
Tailwind
colors: {
  custom: {
    50: '#65549d',
    500: '#121474',
    950: '#000000',
  },
}
SCSS
$custom: #121474;
$custom-light: #65549d;
$custom-dark: #000000;
JSON
{
  "hex": "#121474",
  "rgb": {
    "r": 18,
    "g": 20,
    "b": 116
  },
  "hsl": {
    "h": 238.776,
    "s": 73.134,
    "l": 26.275
  },
  "oklch": {
    "l": 0.28164,
    "c": 0.15572,
    "h": 269.9
  },
  "luminance": 0.0189
}

Semantic roles & 50–950 ramp

primary
#121474
secondary
#ABA837
accent
#EC38F0
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #121474

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

Preview Lab → · Contrast checker → · Palette generator →

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