#12197F#12197F

#12197F is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.2% C 0.165 H 268.7°. Best body text is #FFFFFF at 14.27:1 contrast (WCAG AA passes).

Color values

HEX#12197F
RGBrgb(18, 25, 127)
HSLhsl(236, 75%, 28%)
HSVhsv(236, 86%, 50%)
CMYKcmyk(85.8%, 80.3%, 0%, 50.2%)
CIE-LABlab(17.25, 36.56, -56.92)
CIE-LCHlch(17.25, 67.65, 302.72°)
OKLaboklab(30.22% -0.0038 -0.1649)
OKLCHoklch(30.22% 0.165 268.7)
XYZxyz(4.4265, 2.3556, 20.2959)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12197F #7F7812
analogous
#124F7F #12197F #41127F
triadic
#12197F #7F1219 #197F12
tetradic
#12197F #7F124F #7F7812 #127F41
square
#12197F #7F124F #7F7812 #127F41
split-complementary
#12197F #7F4112 #4F7F12
monochromatic
#04051B #0A0E49 #12197F #1A24B5 #2B36E1

Accessibility & contrast

On white

14.27
#12197F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12197F
14.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12197F#FFFFFF#000000##FFFFFF
##12197F1.0014.271.4714.27
#FFFFFF14.271.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.271.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #12197f;
/* rgb */ color: rgb(18, 25, 127);
/* oklch */ color: oklch(30.2% 0.165 268.7);
Tailwind
colors: {
  custom: {
    50: '#6857a5',
    500: '#12197f',
    950: '#000000',
  },
}
SCSS
$custom: #12197f;
$custom-light: #6857a5;
$custom-dark: #000000;
JSON
{
  "hex": "#12197f",
  "rgb": {
    "r": 18,
    "g": 25,
    "b": 127
  },
  "hsl": {
    "h": 236.147,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30216,
    "c": 0.16495,
    "h": 268.7
  },
  "luminance": 0.02356
}

Semantic roles & 50–950 ramp

primary
#12197F
secondary
#B5AD38
accent
#E636F2
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07030F
muted
#7A787F

Preview Lab

Preview with #12197F

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

Preview Lab → · Contrast checker → · Palette generator →

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