#12165F#12165F

#12165F is a dark, vivid blue. Relative luminance 0.015; OKLCH L 25.9% C 0.126 H 271.3°. Best body text is #FFFFFF at 16.08:1 contrast (WCAG AA passes).

Color values

HEX#12165F
RGBrgb(18, 22, 95)
HSLhsl(237, 68%, 22%)
HSVhsv(237, 81%, 37%)
CMYKcmyk(81.1%, 76.8%, 0%, 62.7%)
CIE-LABlab(12.79, 26.59, -43.46)
CIE-LCHlch(12.79, 50.95, 301.46°)
OKLaboklab(25.93% 0.0028 -0.1258)
OKLCHoklch(25.93% 0.126 271.3)
XYZxyz(2.6012, 1.5284, 10.9822)
Luminance0.0153 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12165F #5F5B12
analogous
#123D5F #12165F #35125F
triadic
#12165F #5F1216 #165F12
tetradic
#12165F #5F123D #5F5B12 #125F35
square
#12165F #5F123D #5F5B12 #125F35
split-complementary
#12165F #5F3512 #3D5F12
monochromatic
#05061A #080A2C #12165F #1C2292 #252EC6

Accessibility & contrast

On white

16.08
#12165F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#12165F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12165F
16.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12165F#FFFFFF#000000##FFFFFF
##12165F1.0016.081.3116.08
#FFFFFF16.081.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002561
Deuteranopia (green-blind)
#001D5E
Tritanopia (blue-blind)
#002B39
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #12165f;
/* rgb */ color: rgb(18, 22, 95);
/* oklch */ color: oklch(25.9% 0.126 271.3);
Tailwind
colors: {
  custom: {
    50: '#5f548d',
    500: '#12165f',
    950: '#000000',
  },
}
SCSS
$custom: #12165f;
$custom-light: #5f548d;
$custom-dark: #000000;
JSON
{
  "hex": "#12165f",
  "rgb": {
    "r": 18,
    "g": 22,
    "b": 95
  },
  "hsl": {
    "h": 236.883,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.25926,
    "c": 0.12585,
    "h": 271.3
  },
  "luminance": 0.01529
}

Semantic roles & 50–950 ramp

primary
#12165F
secondary
#979236
accent
#E23DEB
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#05020C
muted
#7A787D

Preview Lab

Preview with #12165F

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

Preview Lab → · Contrast checker → · Palette generator →

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