#12165E#12165E

#12165E is a dark, vivid blue. Relative luminance 0.015; OKLCH L 25.8% C 0.124 H 271.4°. Best body text is #FFFFFF at 16.13:1 contrast (WCAG AA passes).

Color values

HEX#12165E
RGBrgb(18, 22, 94)
HSLhsl(237, 68%, 22%)
HSVhsv(237, 81%, 37%)
CMYKcmyk(80.9%, 76.6%, 0%, 63.1%)
CIE-LABlab(12.67, 26.21, -42.98)
CIE-LCHlch(12.67, 50.34, 301.37°)
OKLaboklab(25.81% 0.003 -0.1244)
OKLCHoklch(25.81% 0.124 271.4)
XYZxyz(2.5561, 1.5103, 10.7443)
Luminance0.0151 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12165E #5E5A12
analogous
#123C5E #12165E #34125E
triadic
#12165E #5E1216 #165E12
tetradic
#12165E #5E123C #5E5A12 #125E34
square
#12165E #5E123C #5E5A12 #125E34
split-complementary
#12165E #5E3412 #3C5E12
monochromatic
#05061A #080A2B #12165E #1C2291 #262EC5

Accessibility & contrast

On white

16.13
#12165E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#12165E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12165E
16.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12165E#FFFFFF#000000##FFFFFF
##12165E1.0016.131.3016.13
#FFFFFF16.131.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002560
Deuteranopia (green-blind)
#001D5D
Tritanopia (blue-blind)
#002A38
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #12165e;
/* rgb */ color: rgb(18, 22, 94);
/* oklch */ color: oklch(25.8% 0.124 271.4);
Tailwind
colors: {
  custom: {
    50: '#5f538d',
    500: '#12165e',
    950: '#000000',
  },
}
SCSS
$custom: #12165e;
$custom-light: #5f538d;
$custom-dark: #000000;
JSON
{
  "hex": "#12165e",
  "rgb": {
    "r": 18,
    "g": 22,
    "b": 94
  },
  "hsl": {
    "h": 236.842,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.2581,
    "c": 0.12445,
    "h": 271.4
  },
  "luminance": 0.01511
}

Semantic roles & 50–950 ramp

primary
#12165E
secondary
#969135
accent
#E23DEB
background
#F5F4F8
surface
#EAE7F0
border
#C6C3CB
text
#05020C
muted
#79787D

Preview Lab

Preview with #12165E

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

Preview Lab → · Contrast checker → · Palette generator →

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