#181B75#181B75

#181B75 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.6% C 0.148 H 271.5°. Best body text is #FFFFFF at 14.46:1 contrast (WCAG AA passes).

Color values

HEX#181B75
RGBrgb(24, 27, 117)
HSLhsl(238, 66%, 28%)
HSVhsv(238, 79%, 46%)
CMYKcmyk(79.5%, 76.9%, 0%, 54.1%)
CIE-LABlab(16.81, 32.20, -51.24)
CIE-LCHlch(16.81, 60.52, 302.14°)
OKLaboklab(29.64% 0.0038 -0.1483)
OKLCHoklch(29.64% 0.148 271.5)
XYZxyz(3.9784, 2.2620, 17.0531)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181B75 #757218
analogous
#184975 #181B75 #441875
triadic
#181B75 #75181B #1B7518
tetradic
#181B75 #751849 #757218 #187544
square
#181B75 #751849 #757218 #187544
split-complementary
#181B75 #754418 #497518
monochromatic
#050619 #0E0F42 #181B75 #2227A8 #3238D5

Accessibility & contrast

On white

14.46
#181B75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#181B75 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181B75
14.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181B75#FFFFFF#000000##FFFFFF
##181B751.0014.461.4514.46
#FFFFFF14.461.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E78
Deuteranopia (green-blind)
#002573
Tritanopia (blue-blind)
#003546
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #181b75;
/* rgb */ color: rgb(24, 27, 117);
/* oklch */ color: oklch(29.6% 0.148 271.5);
Tailwind
colors: {
  custom: {
    50: '#67589e',
    500: '#181b75',
    950: '#000000',
  },
}
SCSS
$custom: #181b75;
$custom-light: #67589e;
$custom-dark: #000000;
JSON
{
  "hex": "#181b75",
  "rgb": {
    "r": 24,
    "g": 27,
    "b": 117
  },
  "hsl": {
    "h": 238.065,
    "s": 65.957,
    "l": 27.647
  },
  "oklch": {
    "l": 0.29639,
    "c": 0.1484,
    "h": 271.5
  },
  "luminance": 0.02262
}

Semantic roles & 50–950 ramp

primary
#181B75
secondary
#AAA73F
accent
#E33FE9
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #181B75

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

Preview Lab → · Contrast checker → · Palette generator →

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