#181C75#181C75

#181C75 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.8% C 0.147 H 271.3°. Best body text is #FFFFFF at 14.37:1 contrast (WCAG AA passes).

Color values

HEX#181C75
RGBrgb(24, 28, 117)
HSLhsl(237, 66%, 28%)
HSVhsv(237, 79%, 46%)
CMYKcmyk(79.5%, 76.1%, 0%, 54.1%)
CIE-LABlab(17.03, 31.57, -50.87)
CIE-LCHlch(17.03, 59.88, 301.82°)
OKLaboklab(29.8% 0.0033 -0.1473)
OKLCHoklch(29.8% 0.147 271.3)
XYZxyz(4.0017, 2.3086, 17.0609)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181C75 #757118
analogous
#184B75 #181C75 #421875
triadic
#181C75 #75181C #1C7518
tetradic
#181C75 #75184B #757118 #187542
square
#181C75 #75184B #757118 #187542
split-complementary
#181C75 #754218 #4B7518
monochromatic
#050619 #0E1042 #181C75 #2228A8 #3239D5

Accessibility & contrast

On white

14.37
#181C75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#181C75 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181C75
14.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181C75#FFFFFF#000000##FFFFFF
##181C751.0014.371.4614.37
#FFFFFF14.371.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E78
Deuteranopia (green-blind)
#002573
Tritanopia (blue-blind)
#003647
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #181c75;
/* rgb */ color: rgb(24, 28, 117);
/* oklch */ color: oklch(29.8% 0.147 271.3);
Tailwind
colors: {
  custom: {
    50: '#67599e',
    500: '#181c75',
    950: '#000000',
  },
}
SCSS
$custom: #181c75;
$custom-light: #67599e;
$custom-dark: #000000;
JSON
{
  "hex": "#181c75",
  "rgb": {
    "r": 24,
    "g": 28,
    "b": 117
  },
  "hsl": {
    "h": 237.419,
    "s": 65.957,
    "l": 27.647
  },
  "oklch": {
    "l": 0.29798,
    "c": 0.14733,
    "h": 271.3
  },
  "luminance": 0.02309
}

Semantic roles & 50–950 ramp

primary
#181C75
secondary
#AAA63F
accent
#E23FE9
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #181C75

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

Preview Lab → · Contrast checker → · Palette generator →

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