#181F7D#181F7D

#181F7D is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.2% C 0.155 H 270.3°. Best body text is #FFFFFF at 13.72:1 contrast (WCAG AA passes).

Color values

HEX#181F7D
RGBrgb(24, 31, 125)
HSLhsl(236, 68%, 29%)
HSVhsv(236, 81%, 49%)
CMYKcmyk(80.8%, 75.2%, 0%, 51%)
CIE-LABlab(18.60, 32.63, -53.40)
CIE-LCHlch(18.60, 62.58, 301.42°)
OKLaboklab(31.19% 0.0007 -0.1546)
OKLCHoklch(31.19% 0.155 270.3)
XYZxyz(4.5671, 2.6543, 19.6697)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181F7D #7D7618
analogous
#18527D #181F7D #44187D
triadic
#181F7D #7D181F #1F7D18
tetradic
#181F7D #7D1852 #7D7618 #187D44
square
#181F7D #7D1852 #7D7618 #187D44
split-complementary
#181F7D #7D4418 #527D18
monochromatic
#05061A #0E124A #181F7D #222CB0 #3742D9

Accessibility & contrast

On white

13.72
#181F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#181F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181F7D
13.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181F7D#FFFFFF#000000##FFFFFF
##181F7D1.0013.721.5313.72
#FFFFFF13.721.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003280
Deuteranopia (green-blind)
#00287B
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #181f7d;
/* rgb */ color: rgb(24, 31, 125);
/* oklch */ color: oklch(31.2% 0.155 270.3);
Tailwind
colors: {
  custom: {
    50: '#685ba4',
    500: '#181f7d',
    950: '#000000',
  },
}
SCSS
$custom: #181f7d;
$custom-light: #685ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#181f7d",
  "rgb": {
    "r": 24,
    "g": 31,
    "b": 125
  },
  "hsl": {
    "h": 235.842,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31188,
    "c": 0.15465,
    "h": 270.3
  },
  "luminance": 0.02655
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #181F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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