#181796#181796

#181796 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 33.1% C 0.193 H 269.5°. Best body text is #FFFFFF at 13.11:1 contrast (WCAG AA passes).

Color values

HEX#181796
RGBrgb(24, 23, 150)
HSLhsl(240, 73%, 34%)
HSVhsv(240, 85%, 59%)
CMYKcmyk(84%, 84.7%, 0%, 41.2%)
CIE-LABlab(20.08, 45.62, -66.63)
CIE-LCHlch(20.08, 80.75, 304.40°)
OKLaboklab(33.1% -0.0018 -0.1929)
OKLCHoklch(33.1% 0.193 269.5)
XYZxyz(6.1862, 3.0083, 29.1029)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181796 #959617
analogous
#175696 #181796 #581796
triadic
#181796 #961817 #179618
tetradic
#181796 #961756 #959617 #179658
square
#181796 #961756 #959617 #179658
split-complementary
#181796 #965817 #569617
monochromatic
#07072C #100F61 #181796 #201FCB #4645E2

Accessibility & contrast

On white

13.11
#181796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#181796 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181796
13.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181796#FFFFFF#000000##FFFFFF
##1817961.0013.111.6013.11
#FFFFFF13.111.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003799
Deuteranopia (green-blind)
#002A94
Tritanopia (blue-blind)
#004158
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #181796;
/* rgb */ color: rgb(24, 23, 150);
/* oklch */ color: oklch(33.1% 0.193 269.5);
Tailwind
colors: {
  custom: {
    50: '#7058b6',
    500: '#181796',
    950: '#000000',
  },
}
SCSS
$custom: #181796;
$custom-light: #7058b6;
$custom-dark: #000000;
JSON
{
  "hex": "#181796",
  "rgb": {
    "r": 24,
    "g": 23,
    "b": 150
  },
  "hsl": {
    "h": 240.472,
    "s": 73.41,
    "l": 33.922
  },
  "oklch": {
    "l": 0.33098,
    "c": 0.1929,
    "h": 269.5
  },
  "luminance": 0.03009
}

Semantic roles & 50–950 ramp

primary
#181796
secondary
#C2C345
accent
#F038EF
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #181796

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

Preview Lab → · Contrast checker → · Palette generator →

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