#12185C#12185C

#12185C is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.9% C 0.119 H 271.0°. Best body text is #FFFFFF at 16.02:1 contrast (WCAG AA passes).

Color values

HEX#12185C
RGBrgb(18, 24, 92)
HSLhsl(235, 67%, 22%)
HSVhsv(235, 80%, 36%)
CMYKcmyk(80.4%, 73.9%, 0%, 63.9%)
CIE-LABlab(12.95, 24.06, -41.19)
CIE-LCHlch(12.95, 47.70, 300.29°)
OKLaboklab(25.94% 0.0021 -0.1192)
OKLCHoklch(25.94% 0.119 271)
XYZxyz(2.5072, 1.5543, 10.2910)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12185C #5C5612
analogous
#123D5C #12185C #31125C
triadic
#12185C #5C1218 #185C12
tetradic
#12185C #5C123D #5C5612 #125C31
square
#12185C #5C123D #5C5612 #125C31
split-complementary
#12185C #5C3112 #3D5C12
monochromatic
#05071A #080B29 #12185C #1C258F #2633C2

Accessibility & contrast

On white

16.02
#12185C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12185C
16.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12185C#FFFFFF#000000##FFFFFF
##12185C1.0016.021.3116.02
#FFFFFF16.021.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255E
Deuteranopia (green-blind)
#001E5B
Tritanopia (blue-blind)
#002B37
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #12185c;
/* rgb */ color: rgb(18, 24, 92);
/* oklch */ color: oklch(25.9% 0.119 271.0);
Tailwind
colors: {
  custom: {
    50: '#5e558b',
    500: '#12185c',
    950: '#000000',
  },
}
SCSS
$custom: #12185c;
$custom-light: #5e558b;
$custom-dark: #000000;
JSON
{
  "hex": "#12185c",
  "rgb": {
    "r": 18,
    "g": 24,
    "b": 92
  },
  "hsl": {
    "h": 235.135,
    "s": 67.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.25942,
    "c": 0.11921,
    "h": 271
  },
  "luminance": 0.01555
}

Semantic roles & 50–950 ramp

primary
#12185C
secondary
#948D35
accent
#DC3EEA
background
#F5F4F8
surface
#EAE8F0
border
#C6C4CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #12185C

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

Preview Lab → · Contrast checker → · Palette generator →

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