#181F7E#181F7E

#181F7E is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.3% C 0.156 H 270.2°. Best body text is #FFFFFF at 13.67:1 contrast (WCAG AA passes).

Color values

HEX#181F7E
RGBrgb(24, 31, 126)
HSLhsl(236, 68%, 29%)
HSVhsv(236, 81%, 49%)
CMYKcmyk(81%, 75.4%, 0%, 50.6%)
CIE-LABlab(18.71, 33.00, -53.85)
CIE-LCHlch(18.71, 63.16, 301.50°)
OKLaboklab(31.3% 0.0005 -0.156)
OKLCHoklch(31.3% 0.156 270.2)
XYZxyz(4.6313, 2.6800, 20.0078)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181F7E #7E7718
analogous
#18527E #181F7E #44187E
triadic
#181F7E #7E181F #1F7E18
tetradic
#181F7E #7E1852 #7E7718 #187E44
square
#181F7E #7E1852 #7E7718 #187E44
split-complementary
#181F7E #7E4418 #527E18
monochromatic
#05061A #0E124B #181F7E #222CB1 #3743D9

Accessibility & contrast

On white

13.67
#181F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181F7E
13.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181F7E#FFFFFF#000000##FFFFFF
##181F7E1.0013.671.5413.67
#FFFFFF13.671.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003381
Deuteranopia (green-blind)
#00287C
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #181f7e;
/* rgb */ color: rgb(24, 31, 126);
/* oklch */ color: oklch(31.3% 0.156 270.2);
Tailwind
colors: {
  custom: {
    50: '#695ba4',
    500: '#181f7e',
    950: '#000000',
  },
}
SCSS
$custom: #181f7e;
$custom-light: #695ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#181f7e",
  "rgb": {
    "r": 24,
    "g": 31,
    "b": 126
  },
  "hsl": {
    "h": 235.882,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.313,
    "c": 0.15597,
    "h": 270.2
  },
  "luminance": 0.02681
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #181F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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