#181D70#181D70

#181D70 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.4% C 0.139 H 271.5°. Best body text is #FFFFFF at 14.50:1 contrast (WCAG AA passes).

Color values

HEX#181D70
RGBrgb(24, 29, 112)
HSLhsl(237, 65%, 27%)
HSVhsv(237, 79%, 44%)
CMYKcmyk(78.6%, 74.1%, 0%, 56.1%)
CIE-LABlab(16.71, 29.06, -48.17)
CIE-LCHlch(16.71, 56.26, 301.11°)
OKLaboklab(29.4% 0.0036 -0.1394)
OKLCHoklch(29.4% 0.139 271.5)
XYZxyz(3.7397, 2.2424, 15.5618)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181D70 #706B18
analogous
#184970 #181D70 #3F1870
triadic
#181D70 #70181D #1D7018
tetradic
#181D70 #701849 #706B18 #18703F
square
#181D70 #701849 #706B18 #18703F
split-complementary
#181D70 #703F18 #497018
monochromatic
#050719 #0D103E #181D70 #232AA2 #3039D3

Accessibility & contrast

On white

14.50
#181D70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#181D70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181D70
14.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181D70#FFFFFF#000000##FFFFFF
##181D701.0014.501.4514.50
#FFFFFF14.501.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E72
Deuteranopia (green-blind)
#00256E
Tritanopia (blue-blind)
#003444
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #181d70;
/* rgb */ color: rgb(24, 29, 112);
/* oklch */ color: oklch(29.4% 0.139 271.5);
Tailwind
colors: {
  custom: {
    50: '#65599a',
    500: '#181d70',
    950: '#000000',
  },
}
SCSS
$custom: #181d70;
$custom-light: #65599a;
$custom-dark: #000000;
JSON
{
  "hex": "#181d70",
  "rgb": {
    "r": 24,
    "g": 29,
    "b": 112
  },
  "hsl": {
    "h": 236.591,
    "s": 64.706,
    "l": 26.667
  },
  "oklch": {
    "l": 0.29405,
    "c": 0.13946,
    "h": 271.5
  },
  "luminance": 0.02243
}

Semantic roles & 50–950 ramp

primary
#181D70
secondary
#A5A03E
accent
#DE40E8
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #181D70

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

Preview Lab → · Contrast checker → · Palette generator →

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