#12175A#12175A

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

Color values

HEX#12175A
RGBrgb(18, 23, 90)
HSLhsl(236, 67%, 21%)
HSVhsv(236, 80%, 35%)
CMYKcmyk(80%, 74.4%, 0%, 64.7%)
CIE-LABlab(12.48, 23.96, -40.62)
CIE-LCHlch(12.48, 47.16, 300.53°)
OKLaboklab(25.53% 0.003 -0.1175)
OKLCHoklch(25.53% 0.118 271.4)
XYZxyz(2.4007, 1.4793, 9.8299)
Luminance0.0148 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12175A #5A5512
analogous
#123B5A #12175A #31125A
triadic
#12175A #5A1217 #175A12
tetradic
#12175A #5A123B #5A5512 #125A31
square
#12175A #5A123B #5A5512 #125A31
split-complementary
#12175A #5A3112 #3B5A12
monochromatic
#05071A #080A27 #12175A #1C248D #2631C0

Accessibility & contrast

On white

16.20
#12175A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12175A
16.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12175A#FFFFFF#000000##FFFFFF
##12175A1.0016.201.3016.20
#FFFFFF16.201.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245C
Deuteranopia (green-blind)
#001D59
Tritanopia (blue-blind)
#002936
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #12175a;
/* rgb */ color: rgb(18, 23, 90);
/* oklch */ color: oklch(25.5% 0.118 271.4);
Tailwind
colors: {
  custom: {
    50: '#5d5489',
    500: '#12175a',
    950: '#000000',
  },
}
SCSS
$custom: #12175a;
$custom-light: #5d5489;
$custom-dark: #000000;
JSON
{
  "hex": "#12175a",
  "rgb": {
    "r": 18,
    "g": 23,
    "b": 90
  },
  "hsl": {
    "h": 235.833,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.25534,
    "c": 0.11758,
    "h": 271.4
  },
  "luminance": 0.0148
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #12175A

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

Preview Lab → · Contrast checker → · Palette generator →

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