#12165B#12165B

#12165B is a dark, vivid blue. Relative luminance 0.015; OKLCH L 25.5% C 0.120 H 271.6°. Best body text is #FFFFFF at 16.26:1 contrast (WCAG AA passes).

Color values

HEX#12165B
RGBrgb(18, 22, 91)
HSLhsl(237, 67%, 21%)
HSVhsv(237, 80%, 36%)
CMYKcmyk(80.2%, 75.8%, 0%, 64.3%)
CIE-LABlab(12.34, 25.04, -41.53)
CIE-LCHlch(12.34, 48.49, 301.09°)
OKLaboklab(25.47% 0.0034 -0.1202)
OKLCHoklch(25.47% 0.12 271.6)
XYZxyz(2.4241, 1.4575, 10.0491)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12165B #5B5712
analogous
#123B5B #12165B #33125B
triadic
#12165B #5B1216 #165B12
tetradic
#12165B #5B123B #5B5712 #125B33
square
#12165B #5B123B #5B5712 #125B33
split-complementary
#12165B #5B3312 #3B5B12
monochromatic
#05061A #080A28 #12165B #1C228E #262FC1

Accessibility & contrast

On white

16.26
#12165B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#12165B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12165B
16.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12165B#FFFFFF#000000##FFFFFF
##12165B1.0016.261.2916.26
#FFFFFF16.261.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245D
Deuteranopia (green-blind)
#001D5A
Tritanopia (blue-blind)
#002936
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #12165b;
/* rgb */ color: rgb(18, 22, 91);
/* oklch */ color: oklch(25.5% 0.120 271.6);
Tailwind
colors: {
  custom: {
    50: '#5e538a',
    500: '#12165b',
    950: '#000000',
  },
}
SCSS
$custom: #12165b;
$custom-light: #5e538a;
$custom-dark: #000000;
JSON
{
  "hex": "#12165b",
  "rgb": {
    "r": 18,
    "g": 22,
    "b": 91
  },
  "hsl": {
    "h": 236.712,
    "s": 66.972,
    "l": 21.373
  },
  "oklch": {
    "l": 0.25466,
    "c": 0.12023,
    "h": 271.6
  },
  "luminance": 0.01458
}

Semantic roles & 50–950 ramp

primary
#12165B
secondary
#938E35
accent
#E03EEA
background
#F5F4F8
surface
#EAE7F0
border
#C6C3CB
text
#05020C
muted
#79787D

Preview Lab

Preview with #12165B

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

Preview Lab → · Contrast checker → · Palette generator →

#12165B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva