#181F7F#181F7F

#181F7F is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.4% C 0.157 H 270.1°. Best body text is #FFFFFF at 13.63:1 contrast (WCAG AA passes).

Color values

HEX#181F7F
RGBrgb(24, 31, 127)
HSLhsl(236, 68%, 30%)
HSVhsv(236, 81%, 50%)
CMYKcmyk(81.1%, 75.6%, 0%, 50.2%)
CIE-LABlab(18.83, 33.36, -54.30)
CIE-LCHlch(18.83, 63.73, 301.57°)
OKLaboklab(31.41% 0.0004 -0.1573)
OKLCHoklch(31.41% 0.157 270.1)
XYZxyz(4.6961, 2.7059, 20.3494)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181F7F #7F7818
analogous
#18537F #181F7F #44187F
triadic
#181F7F #7F181F #1F7F18
tetradic
#181F7F #7F1853 #7F7818 #187F44
square
#181F7F #7F1853 #7F7818 #187F44
split-complementary
#181F7F #7F4418 #537F18
monochromatic
#05061A #0E124C #181F7F #222CB2 #3843D9

Accessibility & contrast

On white

13.63
#181F7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#181F7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181F7F
13.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181F7F#FFFFFF#000000##FFFFFF
##181F7F1.0013.631.5413.63
#FFFFFF13.631.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#00297D
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #181f7f;
/* rgb */ color: rgb(24, 31, 127);
/* oklch */ color: oklch(31.4% 0.157 270.1);
Tailwind
colors: {
  custom: {
    50: '#695ba5',
    500: '#181f7f',
    950: '#000000',
  },
}
SCSS
$custom: #181f7f;
$custom-light: #695ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#181f7f",
  "rgb": {
    "r": 24,
    "g": 31,
    "b": 127
  },
  "hsl": {
    "h": 235.922,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.31413,
    "c": 0.15728,
    "h": 270.1
  },
  "luminance": 0.02706
}

Semantic roles & 50–950 ramp

primary
#181F7F
secondary
#B3AB3F
accent
#DF3DEB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #181F7F

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

Preview Lab → · Contrast checker → · Palette generator →

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