#181B9E#181B9E

#181B9E is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.5% C 0.199 H 268.8°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#181B9E
RGBrgb(24, 27, 158)
HSLhsl(239, 74%, 36%)
HSVhsv(239, 85%, 62%)
CMYKcmyk(84.8%, 82.9%, 0%, 38%)
CIE-LABlab(21.75, 46.26, -68.77)
CIE-LCHlch(21.75, 82.88, 303.93°)
OKLaboklab(34.55% -0.0041 -0.1992)
OKLCHoklch(34.55% 0.199 268.8)
XYZxyz(6.9381, 3.4458, 32.6406)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181B9E #9E9B18
analogous
#185E9E #181B9E #58189E
triadic
#181B9E #9E181B #1B9E18
tetradic
#181B9E #9E185E #9E9B18 #189E58
square
#181B9E #9E185E #9E9B18 #189E58
split-complementary
#181B9E #9E5818 #5E9E18
monochromatic
#080934 #101269 #181B9E #2024D3 #4D50E4

Accessibility & contrast

On white

12.43
#181B9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#181B9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181B9E
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181B9E#FFFFFF#000000##FFFFFF
##181B9E1.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003BA2
Deuteranopia (green-blind)
#002D9C
Tritanopia (blue-blind)
#00455E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #181b9e;
/* rgb */ color: rgb(24, 27, 158);
/* oklch */ color: oklch(34.5% 0.199 268.8);
Tailwind
colors: {
  custom: {
    50: '#725bbc',
    500: '#181b9e',
    950: '#000000',
  },
}
SCSS
$custom: #181b9e;
$custom-light: #725bbc;
$custom-dark: #000000;
JSON
{
  "hex": "#181b9e",
  "rgb": {
    "r": 24,
    "g": 27,
    "b": 158
  },
  "hsl": {
    "h": 238.657,
    "s": 73.626,
    "l": 35.686
  },
  "oklch": {
    "l": 0.34546,
    "c": 0.1992,
    "h": 268.8
  },
  "luminance": 0.03447
}

Semantic roles & 50–950 ramp

primary
#181B9E
secondary
#C6C34C
accent
#EC38F0
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #181B9E

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

Preview Lab → · Contrast checker → · Palette generator →

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