#12186A#12186A

#12186A is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.5% C 0.139 H 270.0°. Best body text is #FFFFFF at 15.39:1 contrast (WCAG AA passes).

Color values

HEX#12186A
RGBrgb(18, 24, 106)
HSLhsl(236, 71%, 24%)
HSVhsv(236, 83%, 42%)
CMYKcmyk(83%, 77.4%, 0%, 58.4%)
CIE-LABlab(14.52, 29.49, -47.88)
CIE-LCHlch(14.52, 56.23, 301.63°)
OKLaboklab(27.55% 0.0001 -0.1387)
OKLCHoklch(27.55% 0.139 270)
XYZxyz(3.1767, 1.8221, 13.8172)
Luminance0.0182 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12186A #6A6412
analogous
#12446A #12186A #38126A
triadic
#12186A #6A1218 #186A12
tetradic
#12186A #6A1244 #6A6412 #126A38
square
#12186A #6A1244 #6A6412 #126A38
split-complementary
#12186A #6A3812 #446A12
monochromatic
#04061A #090C36 #12186A #1B249E #2430D3

Accessibility & contrast

On white

15.39
#12186A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#12186A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12186A
15.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12186A#FFFFFF#000000##FFFFFF
##12186A1.0015.391.3615.39
#FFFFFF15.391.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296C
Deuteranopia (green-blind)
#002069
Tritanopia (blue-blind)
#00303F
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #12186a;
/* rgb */ color: rgb(18, 24, 106);
/* oklch */ color: oklch(27.5% 0.139 270.0);
Tailwind
colors: {
  custom: {
    50: '#625596',
    500: '#12186a',
    950: '#000000',
  },
}
SCSS
$custom: #12186a;
$custom-light: #625596;
$custom-dark: #000000;
JSON
{
  "hex": "#12186a",
  "rgb": {
    "r": 18,
    "g": 24,
    "b": 106
  },
  "hsl": {
    "h": 235.909,
    "s": 70.968,
    "l": 24.314
  },
  "oklch": {
    "l": 0.27545,
    "c": 0.13867,
    "h": 270
  },
  "luminance": 0.01822
}

Semantic roles & 50–950 ramp

primary
#12186A
secondary
#A29A36
accent
#E13AEE
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030D
muted
#7A787E

Preview Lab

Preview with #12186A

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

Preview Lab → · Contrast checker → · Palette generator →

#12186A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva