#181F70#181F70

#181F70 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.8% C 0.137 H 271.0°. Best body text is #FFFFFF at 14.30:1 contrast (WCAG AA passes).

Color values

HEX#181F70
RGBrgb(24, 31, 112)
HSLhsl(235, 65%, 27%)
HSVhsv(235, 79%, 44%)
CMYKcmyk(78.6%, 72.3%, 0%, 56.1%)
CIE-LABlab(17.20, 27.74, -47.37)
CIE-LCHlch(17.20, 54.89, 300.35°)
OKLaboklab(29.76% 0.0024 -0.1371)
OKLCHoklch(29.76% 0.137 271)
XYZxyz(3.7903, 2.3436, 15.5787)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181F70 #706918
analogous
#184B70 #181F70 #3D1870
triadic
#181F70 #70181F #1F7018
tetradic
#181F70 #70184B #706918 #18703D
square
#181F70 #70184B #706918 #18703D
split-complementary
#181F70 #703D18 #4B7018
monochromatic
#050719 #0D113E #181F70 #232DA2 #303DD3

Accessibility & contrast

On white

14.30
#181F70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#181F70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181F70
14.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181F70#FFFFFF#000000##FFFFFF
##181F701.0014.301.4714.30
#FFFFFF14.301.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F72
Deuteranopia (green-blind)
#00266F
Tritanopia (blue-blind)
#003545
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #181f70;
/* rgb */ color: rgb(24, 31, 112);
/* oklch */ color: oklch(29.8% 0.137 271.0);
Tailwind
colors: {
  custom: {
    50: '#655b9a',
    500: '#181f70',
    950: '#000000',
  },
}
SCSS
$custom: #181f70;
$custom-light: #655b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#181f70",
  "rgb": {
    "r": 24,
    "g": 31,
    "b": 112
  },
  "hsl": {
    "h": 235.227,
    "s": 64.706,
    "l": 26.667
  },
  "oklch": {
    "l": 0.29755,
    "c": 0.1371,
    "h": 271
  },
  "luminance": 0.02344
}

Semantic roles & 50–950 ramp

primary
#181F70
secondary
#A59D3E
accent
#DA40E8
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #181F70

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

Preview Lab → · Contrast checker → · Palette generator →

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