#121866#121866

#121866 is a dark, vivid blue. Relative luminance 0.017; OKLCH L 27.1% C 0.133 H 270.3°. Best body text is #FFFFFF at 15.58:1 contrast (WCAG AA passes).

Color values

HEX#121866
RGBrgb(18, 24, 102)
HSLhsl(236, 70%, 24%)
HSVhsv(236, 82%, 40%)
CMYKcmyk(82.4%, 76.5%, 0%, 60%)
CIE-LABlab(14.06, 27.96, -46.01)
CIE-LCHlch(14.06, 53.84, 301.29°)
OKLaboklab(27.08% 0.0007 -0.1332)
OKLCHoklch(27.08% 0.133 270.3)
XYZxyz(2.9735, 1.7408, 12.7471)
Luminance0.0174 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121866 #666012
analogous
#124266 #121866 #361266
triadic
#121866 #661218 #186612
tetradic
#121866 #661242 #666012 #126636
square
#121866 #661242 #666012 #126636
split-complementary
#121866 #663612 #426612
monochromatic
#05061A #090C32 #121866 #1B249A #2430CE

Accessibility & contrast

On white

15.58
#121866 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#121866 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121866
15.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121866#FFFFFF#000000##FFFFFF
##1218661.0015.581.3515.58
#FFFFFF15.581.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.581.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #121866;
/* rgb */ color: rgb(18, 24, 102);
/* oklch */ color: oklch(27.1% 0.133 270.3);
Tailwind
colors: {
  custom: {
    50: '#615593',
    500: '#121866',
    950: '#000000',
  },
}
SCSS
$custom: #121866;
$custom-light: #615593;
$custom-dark: #000000;
JSON
{
  "hex": "#121866",
  "rgb": {
    "r": 18,
    "g": 24,
    "b": 102
  },
  "hsl": {
    "h": 235.714,
    "s": 70,
    "l": 23.529
  },
  "oklch": {
    "l": 0.27079,
    "c": 0.13323,
    "h": 270.3
  },
  "luminance": 0.01741
}

Semantic roles & 50–950 ramp

primary
#121866
secondary
#9E9636
accent
#E03BED
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06030D
muted
#7A787E

Preview Lab

Preview with #121866

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

Preview Lab → · Contrast checker → · Palette generator →

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