#181F90#181F90

#181F90 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.4% C 0.179 H 269.2°. Best body text is #FFFFFF at 12.82:1 contrast (WCAG AA passes).

Color values

HEX#181F90
RGBrgb(24, 31, 144)
HSLhsl(237, 71%, 33%)
HSVhsv(237, 83%, 56%)
CMYKcmyk(83.3%, 78.5%, 0%, 43.5%)
CIE-LABlab(20.78, 39.44, -61.75)
CIE-LCHlch(20.78, 73.27, 302.56°)
OKLaboklab(33.38% -0.0024 -0.1789)
OKLCHoklch(33.38% 0.179 269.2)
XYZxyz(5.8990, 3.1871, 26.6844)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181F90 #908918
analogous
#185B90 #181F90 #4D1890
triadic
#181F90 #90181F #1F9018
tetradic
#181F90 #90185B #908918 #18904D
square
#181F90 #90185B #908918 #18904D
split-complementary
#181F90 #904D18 #5B9018
monochromatic
#070827 #0F145C #181F90 #212AC4 #434CE0

Accessibility & contrast

On white

12.82
#181F90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#181F90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181F90
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181F90#FFFFFF#000000##FFFFFF
##181F901.0012.821.6412.82
#FFFFFF12.821.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003893
Deuteranopia (green-blind)
#002C8E
Tritanopia (blue-blind)
#004157
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #181f90;
/* rgb */ color: rgb(24, 31, 144);
/* oklch */ color: oklch(33.4% 0.179 269.2);
Tailwind
colors: {
  custom: {
    50: '#6e5cb2',
    500: '#181f90',
    950: '#000000',
  },
}
SCSS
$custom: #181f90;
$custom-light: #6e5cb2;
$custom-dark: #000000;
JSON
{
  "hex": "#181f90",
  "rgb": {
    "r": 24,
    "g": 31,
    "b": 144
  },
  "hsl": {
    "h": 236.5,
    "s": 71.429,
    "l": 32.941
  },
  "oklch": {
    "l": 0.33375,
    "c": 0.17892,
    "h": 269.2
  },
  "luminance": 0.03188
}

Semantic roles & 50–950 ramp

primary
#181F90
secondary
#C0B943
accent
#E43AEE
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #181F90

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

Preview Lab → · Contrast checker → · Palette generator →

#181F90 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva