#121864#121864

#121864 is a dark, vivid blue. Relative luminance 0.017; OKLCH L 26.8% C 0.130 H 270.4°. Best body text is #FFFFFF at 15.67:1 contrast (WCAG AA passes).

Color values

HEX#121864
RGBrgb(18, 24, 100)
HSLhsl(236, 69%, 23%)
HSVhsv(236, 82%, 39%)
CMYKcmyk(82%, 76%, 0%, 60.8%)
CIE-LABlab(13.84, 27.20, -45.06)
CIE-LCHlch(13.84, 52.63, 301.11°)
OKLaboklab(26.85% 0.001 -0.1305)
OKLCHoklch(26.85% 0.13 270.4)
XYZxyz(2.8756, 1.7016, 12.2310)
Luminance0.0170 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121864 #645E12
analogous
#124164 #121864 #351264
triadic
#121864 #641218 #186412
tetradic
#121864 #641241 #645E12 #126435
square
#121864 #641241 #645E12 #126435
split-complementary
#121864 #643512 #416412
monochromatic
#05061A #090C30 #121864 #1B2498 #2531CC

Accessibility & contrast

On white

15.67
#121864 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#121864 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121864
15.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121864#FFFFFF#000000##FFFFFF
##1218641.0015.671.3415.67
#FFFFFF15.671.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002766
Deuteranopia (green-blind)
#001F63
Tritanopia (blue-blind)
#002E3C
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #121864;
/* rgb */ color: rgb(18, 24, 100);
/* oklch */ color: oklch(26.8% 0.130 270.4);
Tailwind
colors: {
  custom: {
    50: '#605591',
    500: '#121864',
    950: '#000000',
  },
}
SCSS
$custom: #121864;
$custom-light: #605591;
$custom-dark: #000000;
JSON
{
  "hex": "#121864",
  "rgb": {
    "r": 18,
    "g": 24,
    "b": 100
  },
  "hsl": {
    "h": 235.61,
    "s": 69.492,
    "l": 23.137
  },
  "oklch": {
    "l": 0.26848,
    "c": 0.13047,
    "h": 270.4
  },
  "luminance": 0.01702
}

Semantic roles & 50–950 ramp

primary
#121864
secondary
#9C9436
accent
#DF3BEC
background
#F6F5F9
surface
#EBE8F1
border
#C6C4CB
text
#06030D
muted
#7A787E

Preview Lab

Preview with #121864

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

Preview Lab → · Contrast checker → · Palette generator →

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