#181790#181790

#181790 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.3% C 0.186 H 269.9°. Best body text is #FFFFFF at 13.43:1 contrast (WCAG AA passes).

Color values

HEX#181790
RGBrgb(24, 23, 144)
HSLhsl(240, 72%, 33%)
HSVhsv(240, 84%, 56%)
CMYKcmyk(83.3%, 84%, 0%, 43.5%)
CIE-LABlab(19.31, 43.70, -64.19)
CIE-LCHlch(19.31, 77.65, 304.25°)
OKLaboklab(32.35% -0.0004 -0.1858)
OKLCHoklch(32.35% 0.186 269.9)
XYZxyz(5.7154, 2.8199, 26.6232)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181790 #8F9017
analogous
#175290 #181790 #551790
triadic
#181790 #901817 #179018
tetradic
#181790 #901752 #8F9017 #179055
square
#181790 #901752 #8F9017 #179055
split-complementary
#181790 #905517 #529017
monochromatic
#060626 #0F0F5B #181790 #211FC5 #4241E1

Accessibility & contrast

On white

13.43
#181790 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#181790 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181790
13.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181790#FFFFFF#000000##FFFFFF
##1817901.0013.431.5613.43
#FFFFFF13.431.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003593
Deuteranopia (green-blind)
#00288E
Tritanopia (blue-blind)
#003E55
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #181790;
/* rgb */ color: rgb(24, 23, 144);
/* oklch */ color: oklch(32.3% 0.186 269.9);
Tailwind
colors: {
  custom: {
    50: '#6f58b2',
    500: '#181790',
    950: '#000000',
  },
}
SCSS
$custom: #181790;
$custom-light: #6f58b2;
$custom-dark: #000000;
JSON
{
  "hex": "#181790",
  "rgb": {
    "r": 24,
    "g": 23,
    "b": 144
  },
  "hsl": {
    "h": 240.496,
    "s": 72.455,
    "l": 32.745
  },
  "oklch": {
    "l": 0.32346,
    "c": 0.18582,
    "h": 269.9
  },
  "luminance": 0.02821
}

Semantic roles & 50–950 ramp

primary
#181790
secondary
#C0C142
accent
#EF39EE
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #181790

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

Preview Lab → · Contrast checker → · Palette generator →

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