#12185A#12185A

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

Color values

HEX#12185A
RGBrgb(18, 24, 90)
HSLhsl(235, 67%, 21%)
HSVhsv(235, 80%, 35%)
CMYKcmyk(80%, 73.3%, 0%, 64.7%)
CIE-LABlab(12.73, 23.26, -40.20)
CIE-LCHlch(12.73, 46.45, 300.06°)
OKLaboklab(25.72% 0.0023 -0.1163)
OKLCHoklch(25.72% 0.116 271.1)
XYZxyz(2.4209, 1.5198, 9.8366)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12185A #5A5412
analogous
#123C5A #12185A #30125A
triadic
#12185A #5A1218 #185A12
tetradic
#12185A #5A123C #5A5412 #125A30
square
#12185A #5A123C #5A5412 #125A30
split-complementary
#12185A #5A3012 #3C5A12
monochromatic
#05071A #080A27 #12185A #1C268D #2633C0

Accessibility & contrast

On white

16.10
#12185A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#12185A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12185A
16.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12185A#FFFFFF#000000##FFFFFF
##12185A1.0016.101.3016.10
#FFFFFF16.101.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245C
Deuteranopia (green-blind)
#001E59
Tritanopia (blue-blind)
#002A36
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #12185a;
/* rgb */ color: rgb(18, 24, 90);
/* oklch */ color: oklch(25.7% 0.116 271.1);
Tailwind
colors: {
  custom: {
    50: '#5d5589',
    500: '#12185a',
    950: '#000000',
  },
}
SCSS
$custom: #12185a;
$custom-light: #5d5589;
$custom-dark: #000000;
JSON
{
  "hex": "#12185a",
  "rgb": {
    "r": 18,
    "g": 24,
    "b": 90
  },
  "hsl": {
    "h": 235,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.2572,
    "c": 0.11632,
    "h": 271.1
  },
  "luminance": 0.0152
}

Semantic roles & 50–950 ramp

primary
#12185A
secondary
#938B35
accent
#DB3EEA
background
#F5F4F8
surface
#EAE7F0
border
#C6C3CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #12185A

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

Preview Lab → · Contrast checker → · Palette generator →

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