#12197E#12197E

#12197E is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.1% C 0.164 H 268.7°. Best body text is #FFFFFF at 14.32:1 contrast (WCAG AA passes).

Color values

HEX#12197E
RGBrgb(18, 25, 126)
HSLhsl(236, 75%, 28%)
HSVhsv(236, 86%, 49%)
CMYKcmyk(85.7%, 80.2%, 0%, 50.6%)
CIE-LABlab(17.13, 36.21, -56.48)
CIE-LCHlch(17.13, 67.09, 302.66°)
OKLaboklab(30.09% -0.0036 -0.1636)
OKLCHoklch(30.09% 0.164 268.7)
XYZxyz(4.3617, 2.3297, 19.9544)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12197E #7E7712
analogous
#124F7E #12197E #41127E
triadic
#12197E #7E1219 #197E12
tetradic
#12197E #7E124F #7E7712 #127E41
square
#12197E #7E124F #7E7712 #127E41
split-complementary
#12197E #7E4112 #4F7E12
monochromatic
#04051B #0A0E48 #12197E #1A24B4 #2A36E1

Accessibility & contrast

On white

14.32
#12197E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#12197E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12197E
14.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12197E#FFFFFF#000000##FFFFFF
##12197E1.0014.321.4714.32
#FFFFFF14.321.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003081
Deuteranopia (green-blind)
#00257C
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #12197e;
/* rgb */ color: rgb(18, 25, 126);
/* oklch */ color: oklch(30.1% 0.164 268.7);
Tailwind
colors: {
  custom: {
    50: '#6857a5',
    500: '#12197e',
    950: '#000000',
  },
}
SCSS
$custom: #12197e;
$custom-light: #6857a5;
$custom-dark: #000000;
JSON
{
  "hex": "#12197e",
  "rgb": {
    "r": 18,
    "g": 25,
    "b": 126
  },
  "hsl": {
    "h": 236.111,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.30094,
    "c": 0.16369,
    "h": 268.7
  },
  "luminance": 0.0233
}

Semantic roles & 50–950 ramp

primary
#12197E
secondary
#B4AC38
accent
#E536F2
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07030F
muted
#7A787F

Preview Lab

Preview with #12197E

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

Preview Lab → · Contrast checker → · Palette generator →

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