#181F75#181F75

#181F75 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.3% C 0.144 H 270.7°. Best body text is #FFFFFF at 14.08:1 contrast (WCAG AA passes).

Color values

HEX#181F75
RGBrgb(24, 31, 117)
HSLhsl(235, 66%, 28%)
HSVhsv(235, 79%, 46%)
CMYKcmyk(79.5%, 73.5%, 0%, 54.1%)
CIE-LABlab(17.73, 29.64, -49.72)
CIE-LCHlch(17.73, 57.89, 300.80°)
OKLaboklab(30.3% 0.0018 -0.1439)
OKLCHoklch(30.3% 0.144 270.7)
XYZxyz(4.0765, 2.4581, 17.0858)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181F75 #756E18
analogous
#184D75 #181F75 #401875
triadic
#181F75 #75181F #1F7518
tetradic
#181F75 #75184D #756E18 #187540
square
#181F75 #75184D #756E18 #187540
split-complementary
#181F75 #754018 #4D7518
monochromatic
#050719 #0E1242 #181F75 #222CA8 #323FD5

Accessibility & contrast

On white

14.08
#181F75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#181F75 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181F75
14.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181F75#FFFFFF#000000##FFFFFF
##181F751.0014.081.4914.08
#FFFFFF14.081.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003078
Deuteranopia (green-blind)
#002773
Tritanopia (blue-blind)
#003747
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #181f75;
/* rgb */ color: rgb(24, 31, 117);
/* oklch */ color: oklch(30.3% 0.144 270.7);
Tailwind
colors: {
  custom: {
    50: '#665b9e',
    500: '#181f75',
    950: '#000000',
  },
}
SCSS
$custom: #181f75;
$custom-light: #665b9e;
$custom-dark: #000000;
JSON
{
  "hex": "#181f75",
  "rgb": {
    "r": 24,
    "g": 31,
    "b": 117
  },
  "hsl": {
    "h": 235.484,
    "s": 65.957,
    "l": 27.647
  },
  "oklch": {
    "l": 0.30299,
    "c": 0.14395,
    "h": 270.7
  },
  "luminance": 0.02459
}

Semantic roles & 50–950 ramp

primary
#181F75
secondary
#AAA23F
accent
#DC3FE9
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #181F75

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

Preview Lab → · Contrast checker → · Palette generator →

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