#12175E#12175E

#12175E is a dark, vivid blue. Relative luminance 0.015; OKLCH L 26.0% C 0.123 H 271.1°. Best body text is #FFFFFF at 16.03:1 contrast (WCAG AA passes).

Color values

HEX#12175E
RGBrgb(18, 23, 94)
HSLhsl(236, 68%, 22%)
HSVhsv(236, 81%, 37%)
CMYKcmyk(80.9%, 75.5%, 0%, 63.1%)
CIE-LABlab(12.92, 25.53, -42.58)
CIE-LCHlch(12.92, 49.65, 300.95°)
OKLaboklab(25.99% 0.0024 -0.1232)
OKLCHoklch(25.99% 0.123 271.1)
XYZxyz(2.5755, 1.5493, 10.7508)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12175E #5E5912
analogous
#123D5E #12175E #33125E
triadic
#12175E #5E1217 #175E12
tetradic
#12175E #5E123D #5E5912 #125E33
square
#12175E #5E123D #5E5912 #125E33
split-complementary
#12175E #5E3312 #3D5E12
monochromatic
#05061A #080A2B #12175E #1C2491 #2630C5

Accessibility & contrast

On white

16.03
#12175E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12175E
16.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12175E#FFFFFF#000000##FFFFFF
##12175E1.0016.031.3116.03
#FFFFFF16.031.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002560
Deuteranopia (green-blind)
#001E5D
Tritanopia (blue-blind)
#002B38
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #12175e;
/* rgb */ color: rgb(18, 23, 94);
/* oklch */ color: oklch(26.0% 0.123 271.1);
Tailwind
colors: {
  custom: {
    50: '#5f548d',
    500: '#12175e',
    950: '#000000',
  },
}
SCSS
$custom: #12175e;
$custom-light: #5f548d;
$custom-dark: #000000;
JSON
{
  "hex": "#12175e",
  "rgb": {
    "r": 18,
    "g": 23,
    "b": 94
  },
  "hsl": {
    "h": 236.053,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.25986,
    "c": 0.12327,
    "h": 271.1
  },
  "luminance": 0.0155
}

Semantic roles & 50–950 ramp

primary
#12175E
secondary
#969035
accent
#DF3DEB
background
#F5F4F8
surface
#EAE7F0
border
#C6C3CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #12175E

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

Preview Lab → · Contrast checker → · Palette generator →

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