#12175B#12175B

#12175B is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.6% C 0.119 H 271.4°. Best body text is #FFFFFF at 16.16:1 contrast (WCAG AA passes).

Color values

HEX#12175B
RGBrgb(18, 23, 91)
HSLhsl(236, 67%, 21%)
HSVhsv(236, 80%, 36%)
CMYKcmyk(80.2%, 74.7%, 0%, 64.3%)
CIE-LABlab(12.59, 24.35, -41.12)
CIE-LCHlch(12.59, 47.79, 300.64°)
OKLaboklab(25.65% 0.0028 -0.119)
OKLCHoklch(25.65% 0.119 271.4)
XYZxyz(2.4435, 1.4965, 10.0556)
Luminance0.0150 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12175B #5B5612
analogous
#123C5B #12175B #32125B
triadic
#12175B #5B1217 #175B12
tetradic
#12175B #5B123C #5B5612 #125B32
square
#12175B #5B123C #5B5612 #125B32
split-complementary
#12175B #5B3212 #3C5B12
monochromatic
#05061A #080A28 #12175B #1C248E #2631C1

Accessibility & contrast

On white

16.16
#12175B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#12175B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12175B
16.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12175B#FFFFFF#000000##FFFFFF
##12175B1.0016.161.3016.16
#FFFFFF16.161.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245D
Deuteranopia (green-blind)
#001D5A
Tritanopia (blue-blind)
#002A37
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #12175b;
/* rgb */ color: rgb(18, 23, 91);
/* oklch */ color: oklch(25.6% 0.119 271.4);
Tailwind
colors: {
  custom: {
    50: '#5e548a',
    500: '#12175b',
    950: '#000000',
  },
}
SCSS
$custom: #12175b;
$custom-light: #5e548a;
$custom-dark: #000000;
JSON
{
  "hex": "#12175b",
  "rgb": {
    "r": 18,
    "g": 23,
    "b": 91
  },
  "hsl": {
    "h": 235.89,
    "s": 66.972,
    "l": 21.373
  },
  "oklch": {
    "l": 0.25646,
    "c": 0.11901,
    "h": 271.4
  },
  "luminance": 0.01497
}

Semantic roles & 50–950 ramp

primary
#12175B
secondary
#938D35
accent
#DE3EEA
background
#F5F4F8
surface
#EAE7F0
border
#C6C3CB
text
#05020C
muted
#79787D

Preview Lab

Preview with #12175B

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

Preview Lab → · Contrast checker → · Palette generator →

#12175B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva