#12166A#12166A

#12166A is a dark, vivid blue. Relative luminance 0.017; OKLCH L 27.2% C 0.141 H 270.4°. Best body text is #FFFFFF at 15.57:1 contrast (WCAG AA passes).

Color values

HEX#12166A
RGBrgb(18, 22, 106)
HSLhsl(237, 71%, 24%)
HSVhsv(237, 83%, 42%)
CMYKcmyk(83%, 79.2%, 0%, 58.4%)
CIE-LABlab(14.07, 30.75, -48.62)
CIE-LCHlch(14.07, 57.53, 302.31°)
OKLaboklab(27.23% 0.0009 -0.1408)
OKLCHoklch(27.23% 0.141 270.4)
XYZxyz(3.1370, 1.7427, 13.8039)
Luminance0.0174 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12166A #6A6612
analogous
#12426A #12166A #3A126A
triadic
#12166A #6A1216 #166A12
tetradic
#12166A #6A1242 #6A6612 #126A3A
square
#12166A #6A1242 #6A6612 #126A3A
split-complementary
#12166A #6A3A12 #426A12
monochromatic
#04051A #090B36 #12166A #1B219E #242CD3

Accessibility & contrast

On white

15.57
#12166A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#12166A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12166A
15.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12166A#FFFFFF#000000##FFFFFF
##12166A1.0015.571.3515.57
#FFFFFF15.571.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00286C
Deuteranopia (green-blind)
#001F69
Tritanopia (blue-blind)
#002F3F
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #12166a;
/* rgb */ color: rgb(18, 22, 106);
/* oklch */ color: oklch(27.2% 0.141 270.4);
Tailwind
colors: {
  custom: {
    50: '#625496',
    500: '#12166a',
    950: '#000000',
  },
}
SCSS
$custom: #12166a;
$custom-light: #625496;
$custom-dark: #000000;
JSON
{
  "hex": "#12166a",
  "rgb": {
    "r": 18,
    "g": 22,
    "b": 106
  },
  "hsl": {
    "h": 237.273,
    "s": 70.968,
    "l": 24.314
  },
  "oklch": {
    "l": 0.27225,
    "c": 0.14081,
    "h": 270.4
  },
  "luminance": 0.01743
}

Semantic roles & 50–950 ramp

primary
#12166A
secondary
#A29D36
accent
#E63AEE
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#06030D
muted
#7A787E

Preview Lab

Preview with #12166A

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

Preview Lab → · Contrast checker → · Palette generator →

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