#181246#181246

#181246 is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 22.9% C 0.093 H 281.4°. Best body text is #FFFFFF at 17.30:1 contrast (WCAG AA passes).

Color values

HEX#181246
RGBrgb(24, 18, 70)
HSLhsl(247, 59%, 17%)
HSVhsv(247, 74%, 27%)
CMYKcmyk(65.7%, 74.3%, 0%, 72.5%)
CIE-LABlab(9.55, 20.57, -31.67)
CIE-LCHlch(9.55, 37.76, 303.01°)
OKLaboklab(22.9% 0.0183 -0.0912)
OKLCHoklch(22.9% 0.093 281.4)
XYZxyz(1.6981, 1.0689, 5.9100)
Luminance0.0107 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181246 #404612
analogous
#122646 #181246 #321246
triadic
#181246 #461812 #124618
tetradic
#181246 #461226 #404612 #124632
square
#181246 #461226 #404612 #124632
split-complementary
#181246 #463212 #264612
monochromatic
#080618 #080618 #181246 #291F77 #392BA7

Accessibility & contrast

On white

17.30
#181246 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181246
17.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181246#FFFFFF#000000##FFFFFF
##1812461.0017.301.2117.30
#FFFFFF17.301.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C48
Deuteranopia (green-blind)
#001945
Tritanopia (blue-blind)
#001F2A
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #181246;
/* rgb */ color: rgb(24, 18, 70);
/* oklch */ color: oklch(22.9% 0.093 281.4);
Tailwind
colors: {
  custom: {
    50: '#5b507a',
    500: '#181246',
    950: '#000000',
  },
}
SCSS
$custom: #181246;
$custom-light: #5b507a;
$custom-dark: #000000;
JSON
{
  "hex": "#181246",
  "rgb": {
    "r": 24,
    "g": 18,
    "b": 70
  },
  "hsl": {
    "h": 246.923,
    "s": 59.091,
    "l": 17.255
  },
  "oklch": {
    "l": 0.229,
    "c": 0.09298,
    "h": 281.4
  },
  "luminance": 0.01069
}

Semantic roles & 50–950 ramp

primary
#181246
secondary
#777F35
accent
#E246D0
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040209
muted
#79787B

Preview Lab

Preview with #181246

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

Preview Lab → · Contrast checker → · Palette generator →

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