#12196F#12196F

#12196F is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.3% C 0.144 H 269.6°. Best body text is #FFFFFF at 15.06:1 contrast (WCAG AA passes).

Color values

HEX#12196F
RGBrgb(18, 25, 111)
HSLhsl(235, 72%, 25%)
HSVhsv(235, 84%, 44%)
CMYKcmyk(83.8%, 77.5%, 0%, 56.5%)
CIE-LABlab(15.34, 30.73, -49.80)
CIE-LCHlch(15.34, 58.52, 301.68°)
OKLaboklab(28.3% -0.0011 -0.1443)
OKLCHoklch(28.3% 0.144 269.6)
XYZxyz(3.4653, 1.9712, 15.2337)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12196F #6F6812
analogous
#12476F #12196F #39126F
triadic
#12196F #6F1219 #196F12
tetradic
#12196F #6F1247 #6F6812 #126F39
square
#12196F #6F1247 #6F6812 #126F39
split-complementary
#12196F #6F3912 #476F12
monochromatic
#04061A #090D3A #12196F #1B25A4 #2331D8

Accessibility & contrast

On white

15.06
#12196F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#12196F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12196F
15.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12196F#FFFFFF#000000##FFFFFF
##12196F1.0015.061.3915.06
#FFFFFF15.061.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B72
Deuteranopia (green-blind)
#00226D
Tritanopia (blue-blind)
#003242
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #12196f;
/* rgb */ color: rgb(18, 25, 111);
/* oklch */ color: oklch(28.3% 0.144 269.6);
Tailwind
colors: {
  custom: {
    50: '#635699',
    500: '#12196f',
    950: '#000000',
  },
}
SCSS
$custom: #12196f;
$custom-light: #635699;
$custom-dark: #000000;
JSON
{
  "hex": "#12196f",
  "rgb": {
    "r": 18,
    "g": 25,
    "b": 111
  },
  "hsl": {
    "h": 235.484,
    "s": 72.093,
    "l": 25.294
  },
  "oklch": {
    "l": 0.28296,
    "c": 0.14427,
    "h": 269.6
  },
  "luminance": 0.01972
}

Semantic roles & 50–950 ramp

primary
#12196F
secondary
#A69E37
accent
#E139EF
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030E
muted
#7A787E

Preview Lab

Preview with #12196F

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

Preview Lab → · Contrast checker → · Palette generator →

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