#181158#181158

#181158 is a very dark, vivid blue. Relative luminance 0.013; OKLCH L 24.7% C 0.120 H 277.4°. Best body text is #FFFFFF at 16.67:1 contrast (WCAG AA passes).

Color values

HEX#181158
RGBrgb(24, 17, 88)
HSLhsl(246, 68%, 21%)
HSVhsv(246, 81%, 35%)
CMYKcmyk(72.7%, 80.7%, 0%, 65.5%)
CIE-LABlab(11.27, 27.86, -41.24)
CIE-LCHlch(11.27, 49.77, 304.04°)
OKLaboklab(24.72% 0.0154 -0.1191)
OKLCHoklch(24.72% 0.12 277.4)
XYZxyz(2.3380, 1.2995, 9.3582)
Luminance0.0130 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181158 #515811
analogous
#112E58 #181158 #3B1158
triadic
#181158 #581811 #115818
tetradic
#181158 #58112E #515811 #11583B
square
#181158 #58112E #515811 #11583B
split-complementary
#181158 #583B11 #2E5811
monochromatic
#07051A #0A0725 #181158 #261B8B #3425BF

Accessibility & contrast

On white

16.67
#181158 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#181158 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181158
16.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181158#FFFFFF#000000##FFFFFF
##1811581.0016.671.2616.67
#FFFFFF16.671.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00215A
Deuteranopia (green-blind)
#001B57
Tritanopia (blue-blind)
#002533
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #181158;
/* rgb */ color: rgb(24, 17, 88);
/* oklch */ color: oklch(24.7% 0.120 277.4);
Tailwind
colors: {
  custom: {
    50: '#605088',
    500: '#181158',
    950: '#000000',
  },
}
SCSS
$custom: #181158;
$custom-light: #605088;
$custom-dark: #000000;
JSON
{
  "hex": "#181158",
  "rgb": {
    "r": 24,
    "g": 17,
    "b": 88
  },
  "hsl": {
    "h": 245.915,
    "s": 67.619,
    "l": 20.588
  },
  "oklch": {
    "l": 0.24721,
    "c": 0.12014,
    "h": 277.4
  },
  "luminance": 0.013
}

Semantic roles & 50–950 ramp

primary
#181158
secondary
#889134
accent
#EA3DD9
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#05020B
muted
#7A787C

Preview Lab

Preview with #181158

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

Preview Lab → · Contrast checker → · Palette generator →

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