#121966#121966

#121966 is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.3% C 0.132 H 270.1°. Best body text is #FFFFFF at 15.48:1 contrast (WCAG AA passes).

Color values

HEX#121966
RGBrgb(18, 25, 102)
HSLhsl(235, 70%, 24%)
HSVhsv(235, 82%, 40%)
CMYKcmyk(82.4%, 75.5%, 0%, 60%)
CIE-LABlab(14.30, 27.30, -45.61)
CIE-LCHlch(14.30, 53.16, 300.90°)
OKLaboklab(27.25% 0.0002 -0.1321)
OKLCHoklch(27.25% 0.132 270.1)
XYZxyz(2.9945, 1.7828, 12.7541)
Luminance0.0178 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121966 #665F12
analogous
#124366 #121966 #351266
triadic
#121966 #661219 #196612
tetradic
#121966 #661243 #665F12 #126635
square
#121966 #661243 #665F12 #126635
split-complementary
#121966 #663512 #436612
monochromatic
#05061A #090C32 #121966 #1B269A #2432CE

Accessibility & contrast

On white

15.48
#121966 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#121966 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121966
15.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121966#FFFFFF#000000##FFFFFF
##1219661.0015.481.3615.48
#FFFFFF15.481.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002868
Deuteranopia (green-blind)
#002065
Tritanopia (blue-blind)
#002F3D
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #121966;
/* rgb */ color: rgb(18, 25, 102);
/* oklch */ color: oklch(27.3% 0.132 270.1);
Tailwind
colors: {
  custom: {
    50: '#615693',
    500: '#121966',
    950: '#000000',
  },
}
SCSS
$custom: #121966;
$custom-light: #615693;
$custom-dark: #000000;
JSON
{
  "hex": "#121966",
  "rgb": {
    "r": 18,
    "g": 25,
    "b": 102
  },
  "hsl": {
    "h": 235,
    "s": 70,
    "l": 23.529
  },
  "oklch": {
    "l": 0.27251,
    "c": 0.13208,
    "h": 270.1
  },
  "luminance": 0.01783
}

Semantic roles & 50–950 ramp

primary
#121966
secondary
#9E9536
accent
#DE3BED
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06030D
muted
#7A787E

Preview Lab

Preview with #121966

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

Preview Lab → · Contrast checker → · Palette generator →

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