#12185F#12185F

#12185F is a dark, vivid blue. Relative luminance 0.016; OKLCH L 26.3% C 0.123 H 270.8°. Best body text is #FFFFFF at 15.89:1 contrast (WCAG AA passes).

Color values

HEX#12185F
RGBrgb(18, 24, 95)
HSLhsl(235, 68%, 22%)
HSVhsv(235, 81%, 37%)
CMYKcmyk(81.1%, 74.7%, 0%, 62.7%)
CIE-LABlab(13.28, 25.24, -42.66)
CIE-LCHlch(13.28, 49.57, 300.62°)
OKLaboklab(26.28% 0.0017 -0.1235)
OKLCHoklch(26.28% 0.123 270.8)
XYZxyz(2.6409, 1.6078, 10.9954)
Luminance0.0161 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12185F #5F5912
analogous
#123F5F #12185F #33125F
triadic
#12185F #5F1218 #185F12
tetradic
#12185F #5F123F #5F5912 #125F33
square
#12185F #5F123F #5F5912 #125F33
split-complementary
#12185F #5F3312 #3F5F12
monochromatic
#05061A #080B2C #12185F #1C2592 #2532C6

Accessibility & contrast

On white

15.89
#12185F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#12185F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12185F
15.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12185F#FFFFFF#000000##FFFFFF
##12185F1.0015.891.3215.89
#FFFFFF15.891.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002661
Deuteranopia (green-blind)
#001E5E
Tritanopia (blue-blind)
#002C39
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #12185f;
/* rgb */ color: rgb(18, 24, 95);
/* oklch */ color: oklch(26.3% 0.123 270.8);
Tailwind
colors: {
  custom: {
    50: '#5f558d',
    500: '#12185f',
    950: '#000000',
  },
}
SCSS
$custom: #12185f;
$custom-light: #5f558d;
$custom-dark: #000000;
JSON
{
  "hex": "#12185f",
  "rgb": {
    "r": 18,
    "g": 24,
    "b": 95
  },
  "hsl": {
    "h": 235.325,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.26278,
    "c": 0.12348,
    "h": 270.8
  },
  "luminance": 0.01608
}

Semantic roles & 50–950 ramp

primary
#12185F
secondary
#979036
accent
#DD3DEB
background
#F6F4F8
surface
#EBE8F0
border
#C6C4CB
text
#05030C
muted
#7A787D

Preview Lab

Preview with #12185F

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

Preview Lab → · Contrast checker → · Palette generator →

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