#12166F#12166F

#12166F is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.8% C 0.147 H 270.0°. Best body text is #FFFFFF at 15.33:1 contrast (WCAG AA passes).

Color values

HEX#12166F
RGBrgb(18, 22, 111)
HSLhsl(237, 72%, 25%)
HSVhsv(237, 84%, 44%)
CMYKcmyk(83.8%, 80.2%, 0%, 56.5%)
CIE-LABlab(14.68, 32.59, -50.89)
CIE-LCHlch(14.68, 60.43, 302.64°)
OKLaboklab(27.83% 0 -0.1474)
OKLCHoklch(27.83% 0.147 270)
XYZxyz(3.4046, 1.8497, 15.2134)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12166F #6F6B12
analogous
#12456F #12166F #3C126F
triadic
#12166F #6F1216 #166F12
tetradic
#12166F #6F1245 #6F6B12 #126F3C
square
#12166F #6F1245 #6F6B12 #126F3C
split-complementary
#12166F #6F3C12 #456F12
monochromatic
#04051A #090C3A #12166F #1B20A4 #232BD8

Accessibility & contrast

On white

15.33
#12166F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#12166F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12166F
15.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12166F#FFFFFF#000000##FFFFFF
##12166F1.0015.331.3715.33
#FFFFFF15.331.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A72
Deuteranopia (green-blind)
#00206D
Tritanopia (blue-blind)
#003142
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #12166f;
/* rgb */ color: rgb(18, 22, 111);
/* oklch */ color: oklch(27.8% 0.147 270.0);
Tailwind
colors: {
  custom: {
    50: '#645499',
    500: '#12166f',
    950: '#000000',
  },
}
SCSS
$custom: #12166f;
$custom-light: #645499;
$custom-dark: #000000;
JSON
{
  "hex": "#12166f",
  "rgb": {
    "r": 18,
    "g": 22,
    "b": 111
  },
  "hsl": {
    "h": 237.419,
    "s": 72.093,
    "l": 25.294
  },
  "oklch": {
    "l": 0.27829,
    "c": 0.1474,
    "h": 270
  },
  "luminance": 0.0185
}

Semantic roles & 50–950 ramp

primary
#12166F
secondary
#A6A137
accent
#E739EF
background
#F6F4F9
surface
#EBE8F2
border
#C6C4CC
text
#06030E
muted
#7A787E

Preview Lab

Preview with #12166F

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

Preview Lab → · Contrast checker → · Palette generator →

#12166F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva