#181FA1#181FA1

#181FA1 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.4% C 0.199 H 268.5°. Best body text is #FFFFFF at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#181FA1
RGBrgb(24, 31, 161)
HSLhsl(237, 74%, 36%)
HSVhsv(237, 85%, 63%)
CMYKcmyk(85.1%, 80.7%, 0%, 36.9%)
CIE-LABlab(22.82, 45.21, -68.83)
CIE-LCHlch(22.82, 82.35, 303.30°)
OKLaboklab(35.4% -0.0054 -0.1994)
OKLCHoklch(35.4% 0.199 268.5)
XYZxyz(7.2975, 3.7465, 34.0498)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181FA1 #A19A18
analogous
#1864A1 #181FA1 #5618A1
triadic
#181FA1 #A1181F #1FA118
tetradic
#181FA1 #A11864 #A19A18 #18A156
square
#181FA1 #A11864 #A19A18 #18A156
split-complementary
#181FA1 #A15618 #64A118
monochromatic
#080A36 #10156C #181FA1 #2029D6 #4F56E5

Accessibility & contrast

On white

12.00
#181FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#181FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181FA1
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181FA1#FFFFFF#000000##FFFFFF
##181FA11.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA5
Deuteranopia (green-blind)
#002F9F
Tritanopia (blue-blind)
#004860
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #181fa1;
/* rgb */ color: rgb(24, 31, 161);
/* oklch */ color: oklch(35.4% 0.199 268.5);
Tailwind
colors: {
  custom: {
    50: '#735dbe',
    500: '#181fa1',
    950: '#000000',
  },
}
SCSS
$custom: #181fa1;
$custom-light: #735dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#181fa1",
  "rgb": {
    "r": 24,
    "g": 31,
    "b": 161
  },
  "hsl": {
    "h": 236.934,
    "s": 74.054,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35397,
    "c": 0.19947,
    "h": 268.5
  },
  "luminance": 0.03747
}

Semantic roles & 50–950 ramp

primary
#181FA1
secondary
#C7C14E
accent
#E737F1
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #181FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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