#12185E#12185E

#12185E is a dark, vivid blue. Relative luminance 0.016; OKLCH L 26.2% C 0.122 H 270.9°. Best body text is #FFFFFF at 15.93:1 contrast (WCAG AA passes).

Color values

HEX#12185E
RGBrgb(18, 24, 94)
HSLhsl(235, 68%, 22%)
HSVhsv(235, 81%, 37%)
CMYKcmyk(80.9%, 74.5%, 0%, 63.1%)
CIE-LABlab(13.17, 24.85, -42.17)
CIE-LCHlch(13.17, 48.95, 300.51°)
OKLaboklab(26.17% 0.0018 -0.122)
OKLCHoklch(26.17% 0.122 270.9)
XYZxyz(2.5958, 1.5897, 10.7575)
Luminance0.0159 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12185E #5E5812
analogous
#123E5E #12185E #32125E
triadic
#12185E #5E1218 #185E12
tetradic
#12185E #5E123E #5E5812 #125E32
square
#12185E #5E123E #5E5812 #125E32
split-complementary
#12185E #5E3212 #3E5E12
monochromatic
#05071A #080B2B #12185E #1C2591 #2632C5

Accessibility & contrast

On white

15.93
#12185E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#12185E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12185E
15.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12185E#FFFFFF#000000##FFFFFF
##12185E1.0015.931.3215.93
#FFFFFF15.931.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #12185e;
/* rgb */ color: rgb(18, 24, 94);
/* oklch */ color: oklch(26.2% 0.122 270.9);
Tailwind
colors: {
  custom: {
    50: '#5e558c',
    500: '#12185e',
    950: '#000000',
  },
}
SCSS
$custom: #12185e;
$custom-light: #5e558c;
$custom-dark: #000000;
JSON
{
  "hex": "#12185e",
  "rgb": {
    "r": 18,
    "g": 24,
    "b": 94
  },
  "hsl": {
    "h": 235.263,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.26165,
    "c": 0.12206,
    "h": 270.9
  },
  "luminance": 0.0159
}

Semantic roles & 50–950 ramp

primary
#12185E
secondary
#968F35
accent
#DD3DEB
background
#F5F4F8
surface
#EAE8F0
border
#C6C4CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #12185E

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

Preview Lab → · Contrast checker → · Palette generator →

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