#12195E#12195E

#12195E is a dark, vivid blue. Relative luminance 0.016; OKLCH L 26.4% C 0.121 H 270.6°. Best body text is #FFFFFF at 15.83:1 contrast (WCAG AA passes).

Color values

HEX#12195E
RGBrgb(18, 25, 94)
HSLhsl(234, 68%, 22%)
HSVhsv(234, 81%, 37%)
CMYKcmyk(80.9%, 73.4%, 0%, 63.1%)
CIE-LABlab(13.42, 24.16, -41.75)
CIE-LCHlch(13.42, 48.24, 300.06°)
OKLaboklab(26.35% 0.0012 -0.1208)
OKLCHoklch(26.35% 0.121 270.6)
XYZxyz(2.6168, 1.6317, 10.7645)
Luminance0.0163 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12195E #5E5712
analogous
#123F5E #12195E #31125E
triadic
#12195E #5E1219 #195E12
tetradic
#12195E #5E123F #5E5712 #125E31
square
#12195E #5E123F #5E5712 #125E31
split-complementary
#12195E #5E3112 #3F5E12
monochromatic
#05071A #080B2B #12195E #1C2791 #2634C5

Accessibility & contrast

On white

15.83
#12195E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#12195E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12195E
15.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12195E#FFFFFF#000000##FFFFFF
##12195E1.0015.831.3315.83
#FFFFFF15.831.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002660
Deuteranopia (green-blind)
#001F5D
Tritanopia (blue-blind)
#002C39
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #12195e;
/* rgb */ color: rgb(18, 25, 94);
/* oklch */ color: oklch(26.4% 0.121 270.6);
Tailwind
colors: {
  custom: {
    50: '#5e568c',
    500: '#12195e',
    950: '#000000',
  },
}
SCSS
$custom: #12195e;
$custom-light: #5e568c;
$custom-dark: #000000;
JSON
{
  "hex": "#12195e",
  "rgb": {
    "r": 18,
    "g": 25,
    "b": 94
  },
  "hsl": {
    "h": 234.474,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.2635,
    "c": 0.12084,
    "h": 270.6
  },
  "luminance": 0.01632
}

Semantic roles & 50–950 ramp

primary
#12195E
secondary
#968D35
accent
#DB3DEB
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #12195E

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

Preview Lab → · Contrast checker → · Palette generator →

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