#181237#181237

#181237 is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.4% C 0.069 H 286.4°. Best body text is #FFFFFF at 17.79:1 contrast (WCAG AA passes).

Color values

HEX#181237
RGBrgb(24, 18, 55)
HSLhsl(250, 51%, 14%)
HSVhsv(250, 67%, 22%)
CMYKcmyk(56.4%, 67.3%, 0%, 78.4%)
CIE-LABlab(8.15, 14.93, -23.26)
CIE-LCHlch(8.15, 27.64, 302.70°)
OKLaboklab(21.44% 0.0196 -0.0664)
OKLCHoklch(21.44% 0.069 286.4)
XYZxyz(1.2824, 0.9026, 3.7203)
Luminance0.0090 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181237 #313712
analogous
#121F37 #181237 #2B1237
triadic
#181237 #371812 #123718
tetradic
#181237 #37121F #313712 #12372B
square
#181237 #37121F #313712 #12372B
split-complementary
#181237 #372B12 #1F3712
monochromatic
#0A0817 #0A0817 #181237 #2C2165 #403093

Accessibility & contrast

On white

17.79
#181237 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#181237 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181237
17.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181237#FFFFFF#000000##FFFFFF
##1812371.0017.791.1817.79
#FFFFFF17.791.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001938
Deuteranopia (green-blind)
#001736
Tritanopia (blue-blind)
#0D1A22
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #181237;
/* rgb */ color: rgb(24, 18, 55);
/* oklch */ color: oklch(21.4% 0.069 286.4);
Tailwind
colors: {
  custom: {
    50: '#584f6e',
    500: '#181237',
    950: '#000000',
  },
}
SCSS
$custom: #181237;
$custom-light: #584f6e;
$custom-dark: #000000;
JSON
{
  "hex": "#181237",
  "rgb": {
    "r": 24,
    "g": 18,
    "b": 55
  },
  "hsl": {
    "h": 249.73,
    "s": 50.685,
    "l": 14.314
  },
  "oklch": {
    "l": 0.21438,
    "c": 0.06927,
    "h": 286.4
  },
  "luminance": 0.00903
}

Semantic roles & 50–950 ramp

primary
#181237
secondary
#667035
accent
#DA4EC3
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#030207
muted
#78787A

Preview Lab

Preview with #181237

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

Preview Lab → · Contrast checker → · Palette generator →

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