#12185B#12185B

#12185B is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.8% C 0.118 H 271.1°. Best body text is #FFFFFF at 16.06:1 contrast (WCAG AA passes).

Color values

HEX#12185B
RGBrgb(18, 24, 91)
HSLhsl(235, 67%, 21%)
HSVhsv(235, 80%, 36%)
CMYKcmyk(80.2%, 73.6%, 0%, 64.3%)
CIE-LABlab(12.84, 23.66, -40.70)
CIE-LCHlch(12.84, 47.08, 300.18°)
OKLaboklab(25.83% 0.0022 -0.1177)
OKLCHoklch(25.83% 0.118 271.1)
XYZxyz(2.4638, 1.5369, 10.0623)
Luminance0.0154 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12185B #5B5512
analogous
#123D5B #12185B #31125B
triadic
#12185B #5B1218 #185B12
tetradic
#12185B #5B123D #5B5512 #125B31
square
#12185B #5B123D #5B5512 #125B31
split-complementary
#12185B #5B3112 #3D5B12
monochromatic
#05071A #080B28 #12185B #1C258E #2633C1

Accessibility & contrast

On white

16.06
#12185B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#12185B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12185B
16.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12185B#FFFFFF#000000##FFFFFF
##12185B1.0016.061.3116.06
#FFFFFF16.061.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255D
Deuteranopia (green-blind)
#001E5A
Tritanopia (blue-blind)
#002A37
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #12185b;
/* rgb */ color: rgb(18, 24, 91);
/* oklch */ color: oklch(25.8% 0.118 271.1);
Tailwind
colors: {
  custom: {
    50: '#5e558a',
    500: '#12185b',
    950: '#000000',
  },
}
SCSS
$custom: #12185b;
$custom-light: #5e558a;
$custom-dark: #000000;
JSON
{
  "hex": "#12185b",
  "rgb": {
    "r": 18,
    "g": 24,
    "b": 91
  },
  "hsl": {
    "h": 235.068,
    "s": 66.972,
    "l": 21.373
  },
  "oklch": {
    "l": 0.25831,
    "c": 0.11777,
    "h": 271.1
  },
  "luminance": 0.01537
}

Semantic roles & 50–950 ramp

primary
#12185B
secondary
#938C35
accent
#DC3EEA
background
#F5F4F8
surface
#EAE8F0
border
#C6C4CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #12185B

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

Preview Lab → · Contrast checker → · Palette generator →

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