#12176F#12176F

#12176F is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.0% C 0.146 H 269.9°. Best body text is #FFFFFF at 15.24:1 contrast (WCAG AA passes).

Color values

HEX#12176F
RGBrgb(18, 23, 111)
HSLhsl(237, 72%, 25%)
HSVhsv(237, 84%, 44%)
CMYKcmyk(83.8%, 79.3%, 0%, 56.5%)
CIE-LABlab(14.89, 31.98, -50.53)
CIE-LCHlch(14.89, 59.80, 302.33°)
OKLaboklab(27.98% -0.0004 -0.1464)
OKLCHoklch(27.98% 0.146 269.9)
XYZxyz(3.4241, 1.8887, 15.2199)
Luminance0.0189 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12176F #6F6A12
analogous
#12456F #12176F #3B126F
triadic
#12176F #6F1217 #176F12
tetradic
#12176F #6F1245 #6F6A12 #126F3B
square
#12176F #6F1245 #6F6A12 #126F3B
split-complementary
#12176F #6F3B12 #456F12
monochromatic
#04051A #090C3A #12176F #1B22A4 #232DD8

Accessibility & contrast

On white

15.24
#12176F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#12176F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12176F
15.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12176F#FFFFFF#000000##FFFFFF
##12176F1.0015.241.3815.24
#FFFFFF15.241.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.241.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #12176f;
/* rgb */ color: rgb(18, 23, 111);
/* oklch */ color: oklch(28.0% 0.146 269.9);
Tailwind
colors: {
  custom: {
    50: '#645599',
    500: '#12176f',
    950: '#000000',
  },
}
SCSS
$custom: #12176f;
$custom-light: #645599;
$custom-dark: #000000;
JSON
{
  "hex": "#12176f",
  "rgb": {
    "r": 18,
    "g": 23,
    "b": 111
  },
  "hsl": {
    "h": 236.774,
    "s": 72.093,
    "l": 25.294
  },
  "oklch": {
    "l": 0.27981,
    "c": 0.14638,
    "h": 269.9
  },
  "luminance": 0.01889
}

Semantic roles & 50–950 ramp

primary
#12176F
secondary
#A6A037
accent
#E539EF
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030E
muted
#7A787E

Preview Lab

Preview with #12176F

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

Preview Lab → · Contrast checker → · Palette generator →

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