#181F7C#181F7C

#181F7C is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.1% C 0.153 H 270.3°. Best body text is #FFFFFF at 13.76:1 contrast (WCAG AA passes).

Color values

HEX#181F7C
RGBrgb(24, 31, 124)
HSLhsl(236, 68%, 29%)
HSVhsv(236, 81%, 49%)
CMYKcmyk(80.6%, 75%, 0%, 51.4%)
CIE-LABlab(18.49, 32.26, -52.95)
CIE-LCHlch(18.49, 62.00, 301.35°)
OKLaboklab(31.08% 0.0008 -0.1533)
OKLCHoklch(31.08% 0.153 270.3)
XYZxyz(4.5035, 2.6289, 19.3350)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181F7C #7C7518
analogous
#18517C #181F7C #43187C
triadic
#181F7C #7C181F #1F7C18
tetradic
#181F7C #7C1851 #7C7518 #187C43
square
#181F7C #7C1851 #7C7518 #187C43
split-complementary
#181F7C #7C4318 #517C18
monochromatic
#05061A #0E1249 #181F7C #222CAF #3642D8

Accessibility & contrast

On white

13.76
#181F7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181F7C
13.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181F7C#FFFFFF#000000##FFFFFF
##181F7C1.0013.761.5313.76
#FFFFFF13.761.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327F
Deuteranopia (green-blind)
#00287A
Tritanopia (blue-blind)
#003A4B
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #181f7c;
/* rgb */ color: rgb(24, 31, 124);
/* oklch */ color: oklch(31.1% 0.153 270.3);
Tailwind
colors: {
  custom: {
    50: '#685ba3',
    500: '#181f7c',
    950: '#000000',
  },
}
SCSS
$custom: #181f7c;
$custom-light: #685ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#181f7c",
  "rgb": {
    "r": 24,
    "g": 31,
    "b": 124
  },
  "hsl": {
    "h": 235.8,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31076,
    "c": 0.15333,
    "h": 270.3
  },
  "luminance": 0.02629
}

Semantic roles & 50–950 ramp

primary
#181F7C
secondary
#B1A93F
accent
#DE3DEA
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #181F7C

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

Preview Lab → · Contrast checker → · Palette generator →

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