#181147#181147

#181147 is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 22.8% C 0.096 H 281.5°. Best body text is #FFFFFF at 17.36:1 contrast (WCAG AA passes).

Color values

HEX#181147
RGBrgb(24, 17, 71)
HSLhsl(248, 61%, 17%)
HSVhsv(248, 76%, 28%)
CMYKcmyk(66.2%, 76.1%, 0%, 72.2%)
CIE-LABlab(9.40, 21.64, -32.62)
CIE-LCHlch(9.40, 39.14, 303.56°)
OKLaboklab(22.82% 0.0192 -0.0939)
OKLCHoklch(22.82% 0.096 281.5)
XYZxyz(1.7141, 1.0499, 6.0723)
Luminance0.0105 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181147 #404711
analogous
#112547 #181147 #331147
triadic
#181147 #471811 #114718
tetradic
#181147 #471125 #404711 #114733
square
#181147 #471125 #404711 #114733
split-complementary
#181147 #473311 #254711
monochromatic
#080619 #080619 #181147 #291D78 #3929AA

Accessibility & contrast

On white

17.36
#181147 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#181147 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181147
17.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181147#FFFFFF#000000##FFFFFF
##1811471.0017.361.2117.36
#FFFFFF17.361.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C49
Deuteranopia (green-blind)
#001846
Tritanopia (blue-blind)
#001F2A
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #181147;
/* rgb */ color: rgb(24, 17, 71);
/* oklch */ color: oklch(22.8% 0.096 281.5);
Tailwind
colors: {
  custom: {
    50: '#5c4f7b',
    500: '#181147',
    950: '#000000',
  },
}
SCSS
$custom: #181147;
$custom-light: #5c4f7b;
$custom-dark: #000000;
JSON
{
  "hex": "#181147",
  "rgb": {
    "r": 24,
    "g": 17,
    "b": 71
  },
  "hsl": {
    "h": 247.778,
    "s": 61.364,
    "l": 17.255
  },
  "oklch": {
    "l": 0.22822,
    "c": 0.09587,
    "h": 281.5
  },
  "luminance": 0.0105
}

Semantic roles & 50–950 ramp

primary
#181147
secondary
#778133
accent
#E443D0
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#040209
muted
#79787B

Preview Lab

Preview with #181147

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

Preview Lab → · Contrast checker → · Palette generator →

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