#12185D#12185D

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

Color values

HEX#12185D
RGBrgb(18, 24, 93)
HSLhsl(235, 68%, 22%)
HSVhsv(235, 81%, 36%)
CMYKcmyk(80.6%, 74.2%, 0%, 63.5%)
CIE-LABlab(13.06, 24.46, -41.68)
CIE-LCHlch(13.06, 48.33, 300.40°)
OKLaboklab(26.05% 0.002 -0.1206)
OKLCHoklch(26.05% 0.121 270.9)
XYZxyz(2.5512, 1.5719, 10.5228)
Luminance0.0157 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12185D #5D5712
analogous
#123E5D #12185D #32125D
triadic
#12185D #5D1218 #185D12
tetradic
#12185D #5D123E #5D5712 #125D32
square
#12185D #5D123E #5D5712 #125D32
split-complementary
#12185D #5D3212 #3E5D12
monochromatic
#05071A #080B2A #12185D #1C2590 #2632C4

Accessibility & contrast

On white

15.98
#12185D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12185D
15.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12185D#FFFFFF#000000##FFFFFF
##12185D1.0015.981.3115.98
#FFFFFF15.981.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF15.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255F
Deuteranopia (green-blind)
#001E5C
Tritanopia (blue-blind)
#002B38
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #12185d;
/* rgb */ color: rgb(18, 24, 93);
/* oklch */ color: oklch(26.1% 0.121 270.9);
Tailwind
colors: {
  custom: {
    50: '#5e558c',
    500: '#12185d',
    950: '#000000',
  },
}
SCSS
$custom: #12185d;
$custom-light: #5e558c;
$custom-dark: #000000;
JSON
{
  "hex": "#12185d",
  "rgb": {
    "r": 18,
    "g": 24,
    "b": 93
  },
  "hsl": {
    "h": 235.2,
    "s": 67.568,
    "l": 21.765
  },
  "oklch": {
    "l": 0.26053,
    "c": 0.12064,
    "h": 270.9
  },
  "luminance": 0.01572
}

Semantic roles & 50–950 ramp

primary
#12185D
secondary
#958E35
accent
#DD3DEA
background
#F5F4F8
surface
#EAE8F0
border
#C6C4CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #12185D

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

Preview Lab → · Contrast checker → · Palette generator →

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