#181F95#181F95

#181F95 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 34.0% C 0.185 H 269.0°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).

Color values

HEX#181F95
RGBrgb(24, 31, 149)
HSLhsl(237, 72%, 34%)
HSVhsv(237, 84%, 58%)
CMYKcmyk(83.9%, 79.2%, 0%, 41.6%)
CIE-LABlab(21.37, 41.16, -63.87)
CIE-LCHlch(21.37, 75.98, 302.80°)
OKLaboklab(33.96% -0.0033 -0.185)
OKLCHoklch(33.96% 0.185 269)
XYZxyz(6.2896, 3.3433, 28.7418)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181F95 #958E18
analogous
#185E95 #181F95 #501895
triadic
#181F95 #95181F #1F9518
tetradic
#181F95 #95185E #958E18 #189550
square
#181F95 #95185E #958E18 #189550
split-complementary
#181F95 #955018 #5E9518
monochromatic
#07092C #101460 #181F95 #202ACA #464FE1

Accessibility & contrast

On white

12.58
#181F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#181F95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181F95
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181F95#FFFFFF#000000##FFFFFF
##181F951.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A98
Deuteranopia (green-blind)
#002D93
Tritanopia (blue-blind)
#004359
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #181f95;
/* rgb */ color: rgb(24, 31, 149);
/* oklch */ color: oklch(34.0% 0.185 269.0);
Tailwind
colors: {
  custom: {
    50: '#6f5db5',
    500: '#181f95',
    950: '#000000',
  },
}
SCSS
$custom: #181f95;
$custom-light: #6f5db5;
$custom-dark: #000000;
JSON
{
  "hex": "#181f95",
  "rgb": {
    "r": 24,
    "g": 31,
    "b": 149
  },
  "hsl": {
    "h": 236.64,
    "s": 72.254,
    "l": 33.922
  },
  "oklch": {
    "l": 0.33964,
    "c": 0.18506,
    "h": 269
  },
  "luminance": 0.03344
}

Semantic roles & 50–950 ramp

primary
#181F95
secondary
#C2BB46
accent
#E539EF
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #181F95

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

Preview Lab → · Contrast checker → · Palette generator →

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