#121860#121860

#121860 is a dark, vivid blue. Relative luminance 0.016; OKLCH L 26.4% C 0.125 H 270.7°. Best body text is #FFFFFF at 15.85:1 contrast (WCAG AA passes).

Color values

HEX#121860
RGBrgb(18, 24, 96)
HSLhsl(235, 68%, 22%)
HSVhsv(235, 81%, 38%)
CMYKcmyk(81.3%, 75%, 0%, 62.4%)
CIE-LABlab(13.39, 25.64, -43.14)
CIE-LCHlch(13.39, 50.18, 300.72°)
OKLaboklab(26.39% 0.0016 -0.1249)
OKLCHoklch(26.39% 0.125 270.7)
XYZxyz(2.6867, 1.6261, 11.2363)
Luminance0.0163 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121860 #605A12
analogous
#123F60 #121860 #331260
triadic
#121860 #601218 #186012
tetradic
#121860 #60123F #605A12 #126033
square
#121860 #60123F #605A12 #126033
split-complementary
#121860 #603312 #3F6012
monochromatic
#05061A #080B2C #121860 #1C2594 #2532C7

Accessibility & contrast

On white

15.85
#121860 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#121860 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121860
15.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121860#FFFFFF#000000##FFFFFF
##1218601.0015.851.3315.85
#FFFFFF15.851.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002662
Deuteranopia (green-blind)
#001F5F
Tritanopia (blue-blind)
#002C3A
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #121860;
/* rgb */ color: rgb(18, 24, 96);
/* oklch */ color: oklch(26.4% 0.125 270.7);
Tailwind
colors: {
  custom: {
    50: '#5f558e',
    500: '#121860',
    950: '#000000',
  },
}
SCSS
$custom: #121860;
$custom-light: #5f558e;
$custom-dark: #000000;
JSON
{
  "hex": "#121860",
  "rgb": {
    "r": 18,
    "g": 24,
    "b": 96
  },
  "hsl": {
    "h": 235.385,
    "s": 68.421,
    "l": 22.353
  },
  "oklch": {
    "l": 0.26391,
    "c": 0.12489,
    "h": 270.7
  },
  "luminance": 0.01626
}

Semantic roles & 50–950 ramp

primary
#121860
secondary
#989136
accent
#DE3DEB
background
#F6F4F8
surface
#EBE8F0
border
#C6C4CB
text
#05030C
muted
#7A787D

Preview Lab

Preview with #121860

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

Preview Lab → · Contrast checker → · Palette generator →

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