#12176A#12176A

#12176A is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.4% C 0.140 H 270.2°. Best body text is #FFFFFF at 15.48:1 contrast (WCAG AA passes).

Color values

HEX#12176A
RGBrgb(18, 23, 106)
HSLhsl(237, 71%, 24%)
HSVhsv(237, 83%, 42%)
CMYKcmyk(83%, 78.3%, 0%, 58.4%)
CIE-LABlab(14.30, 30.13, -48.25)
CIE-LCHlch(14.30, 56.88, 301.98°)
OKLaboklab(27.38% 0.0005 -0.1398)
OKLCHoklch(27.38% 0.14 270.2)
XYZxyz(3.1565, 1.7816, 13.8104)
Luminance0.0178 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12176A #6A6512
analogous
#12436A #12176A #39126A
triadic
#12176A #6A1217 #176A12
tetradic
#12176A #6A1243 #6A6512 #126A39
square
#12176A #6A1243 #6A6512 #126A39
split-complementary
#12176A #6A3912 #436A12
monochromatic
#04061A #090C36 #12176A #1B229E #242ED3

Accessibility & contrast

On white

15.48
#12176A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#12176A on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##12176A#FFFFFF#000000##FFFFFF
##12176A1.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)
#00296C
Deuteranopia (green-blind)
#002069
Tritanopia (blue-blind)
#002F3F
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #12176a;
/* rgb */ color: rgb(18, 23, 106);
/* oklch */ color: oklch(27.4% 0.140 270.2);
Tailwind
colors: {
  custom: {
    50: '#625596',
    500: '#12176a',
    950: '#000000',
  },
}
SCSS
$custom: #12176a;
$custom-light: #625596;
$custom-dark: #000000;
JSON
{
  "hex": "#12176a",
  "rgb": {
    "r": 18,
    "g": 23,
    "b": 106
  },
  "hsl": {
    "h": 236.591,
    "s": 70.968,
    "l": 24.314
  },
  "oklch": {
    "l": 0.27383,
    "c": 0.13975,
    "h": 270.2
  },
  "luminance": 0.01782
}

Semantic roles & 50–950 ramp

primary
#12176A
secondary
#A29B36
accent
#E43AEE
background
#F6F5F9
surface
#EBE8F2
border
#C6C4CC
text
#06030D
muted
#7A787E

Preview Lab

Preview with #12176A

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

Preview Lab → · Contrast checker → · Palette generator →

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