#12175D#12175D

#12175D is a dark, vivid blue. Relative luminance 0.015; OKLCH L 25.9% C 0.122 H 271.2°. Best body text is #FFFFFF at 16.07:1 contrast (WCAG AA passes).

Color values

HEX#12175D
RGBrgb(18, 23, 93)
HSLhsl(236, 68%, 22%)
HSVhsv(236, 81%, 36%)
CMYKcmyk(80.6%, 75.3%, 0%, 63.5%)
CIE-LABlab(12.81, 25.14, -42.10)
CIE-LCHlch(12.81, 49.03, 300.85°)
OKLaboklab(25.87% 0.0025 -0.1218)
OKLCHoklch(25.87% 0.122 271.2)
XYZxyz(2.5310, 1.5314, 10.5160)
Luminance0.0153 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12175D #5D5812
analogous
#123D5D #12175D #33125D
triadic
#12175D #5D1217 #175D12
tetradic
#12175D #5D123D #5D5812 #125D33
square
#12175D #5D123D #5D5812 #125D33
split-complementary
#12175D #5D3312 #3D5D12
monochromatic
#05061A #080A2A #12175D #1C2490 #2630C4

Accessibility & contrast

On white

16.07
#12175D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#12175D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12175D
16.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12175D#FFFFFF#000000##FFFFFF
##12175D1.0016.071.3116.07
#FFFFFF16.071.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255F
Deuteranopia (green-blind)
#001E5C
Tritanopia (blue-blind)
#002B38
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #12175d;
/* rgb */ color: rgb(18, 23, 93);
/* oklch */ color: oklch(25.9% 0.122 271.2);
Tailwind
colors: {
  custom: {
    50: '#5e548c',
    500: '#12175d',
    950: '#000000',
  },
}
SCSS
$custom: #12175d;
$custom-light: #5e548c;
$custom-dark: #000000;
JSON
{
  "hex": "#12175d",
  "rgb": {
    "r": 18,
    "g": 23,
    "b": 93
  },
  "hsl": {
    "h": 236,
    "s": 67.568,
    "l": 21.765
  },
  "oklch": {
    "l": 0.25872,
    "c": 0.12186,
    "h": 271.2
  },
  "luminance": 0.01532
}

Semantic roles & 50–950 ramp

primary
#12175D
secondary
#958F35
accent
#DF3DEA
background
#F5F4F8
surface
#EAE7F0
border
#C6C3CB
text
#05020C
muted
#79787D

Preview Lab

Preview with #12175D

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

Preview Lab → · Contrast checker → · Palette generator →

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