#12175F#12175F

#12175F is a dark, vivid blue. Relative luminance 0.016; OKLCH L 26.1% C 0.125 H 271.0°. Best body text is #FFFFFF at 15.99:1 contrast (WCAG AA passes).

Color values

HEX#12175F
RGBrgb(18, 23, 95)
HSLhsl(236, 68%, 22%)
HSVhsv(236, 81%, 37%)
CMYKcmyk(81.1%, 75.8%, 0%, 62.7%)
CIE-LABlab(13.03, 25.93, -43.07)
CIE-LCHlch(13.03, 50.27, 301.05°)
OKLaboklab(26.1% 0.0023 -0.1247)
OKLCHoklch(26.1% 0.125 271)
XYZxyz(2.6207, 1.5673, 10.9887)
Luminance0.0157 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12175F #5F5A12
analogous
#123E5F #12175F #34125F
triadic
#12175F #5F1217 #175F12
tetradic
#12175F #5F123E #5F5A12 #125F34
square
#12175F #5F123E #5F5A12 #125F34
split-complementary
#12175F #5F3412 #3E5F12
monochromatic
#05061A #080B2C #12175F #1C2392 #2530C6

Accessibility & contrast

On white

15.99
#12175F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12175F
15.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12175F#FFFFFF#000000##FFFFFF
##12175F1.0015.991.3115.99
#FFFFFF15.991.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF15.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002561
Deuteranopia (green-blind)
#001E5E
Tritanopia (blue-blind)
#002B39
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #12175f;
/* rgb */ color: rgb(18, 23, 95);
/* oklch */ color: oklch(26.1% 0.125 271.0);
Tailwind
colors: {
  custom: {
    50: '#5f548d',
    500: '#12175f',
    950: '#000000',
  },
}
SCSS
$custom: #12175f;
$custom-light: #5f548d;
$custom-dark: #000000;
JSON
{
  "hex": "#12175f",
  "rgb": {
    "r": 18,
    "g": 23,
    "b": 95
  },
  "hsl": {
    "h": 236.104,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.261,
    "c": 0.12468,
    "h": 271
  },
  "luminance": 0.01568
}

Semantic roles & 50–950 ramp

primary
#12175F
secondary
#979136
accent
#E03DEB
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#05030C
muted
#7A787D

Preview Lab

Preview with #12175F

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

Preview Lab → · Contrast checker → · Palette generator →

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