#181162#181162

#181162 is a dark, vivid blue. Relative luminance 0.015; OKLCH L 25.9% C 0.134 H 275.5°. Best body text is #FFFFFF at 16.21:1 contrast (WCAG AA passes).

Color values

HEX#181162
RGBrgb(24, 17, 98)
HSLhsl(245, 70%, 23%)
HSVhsv(245, 83%, 38%)
CMYKcmyk(75.5%, 82.7%, 0%, 61.6%)
CIE-LABlab(12.46, 31.40, -45.99)
CIE-LCHlch(12.46, 55.69, 304.32°)
OKLaboklab(25.91% 0.0128 -0.133)
OKLCHoklch(25.91% 0.134 275.5)
XYZxyz(2.7810, 1.4767, 11.6914)
Luminance0.0148 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181162 #5B6211
analogous
#113362 #181162 #401162
triadic
#181162 #621811 #116218
tetradic
#181162 #621133 #5B6211 #116240
square
#181162 #621133 #5B6211 #116240
split-complementary
#181162 #624011 #336211
monochromatic
#06051A #0B082E #181162 #251A96 #3223CA

Accessibility & contrast

On white

16.21
#181162 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#181162 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181162
16.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181162#FFFFFF#000000##FFFFFF
##1811621.0016.211.3016.21
#FFFFFF16.211.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002464
Deuteranopia (green-blind)
#001D61
Tritanopia (blue-blind)
#002939
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #181162;
/* rgb */ color: rgb(24, 17, 98);
/* oklch */ color: oklch(25.9% 0.134 275.5);
Tailwind
colors: {
  custom: {
    50: '#635190',
    500: '#181162',
    950: '#000000',
  },
}
SCSS
$custom: #181162;
$custom-light: #635190;
$custom-dark: #000000;
JSON
{
  "hex": "#181162",
  "rgb": {
    "r": 24,
    "g": 17,
    "b": 98
  },
  "hsl": {
    "h": 245.185,
    "s": 70.435,
    "l": 22.549
  },
  "oklch": {
    "l": 0.25908,
    "c": 0.1336,
    "h": 275.5
  },
  "luminance": 0.01477
}

Semantic roles & 50–950 ramp

primary
#181162
secondary
#929A34
accent
#ED3BDE
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020D
muted
#7A787D

Preview Lab

Preview with #181162

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

Preview Lab → · Contrast checker → · Palette generator →

#181162 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva