#181B5F#181B5F

#181B5F is a dark, moderate blue. Relative luminance 0.018; OKLCH L 27.2% C 0.118 H 273.5°. Best body text is #FFFFFF at 15.43:1 contrast (WCAG AA passes).

Color values

HEX#181B5F
RGBrgb(24, 27, 95)
HSLhsl(237, 60%, 23%)
HSVhsv(237, 75%, 37%)
CMYKcmyk(74.7%, 71.6%, 0%, 62.7%)
CIE-LABlab(14.42, 23.90, -40.76)
CIE-LCHlch(14.42, 47.25, 300.39°)
OKLaboklab(27.21% 0.0071 -0.1178)
OKLCHoklch(27.21% 0.118 273.5)
XYZxyz(2.8335, 1.8040, 11.0231)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181B5F #5F5C18
analogous
#183E5F #181B5F #38185F
triadic
#181B5F #5F181B #1B5F18
tetradic
#181B5F #5F183E #5F5C18 #185F38
square
#181B5F #5F183E #5F5C18 #185F38
split-complementary
#181B5F #5F3818 #3E5F18
monochromatic
#060718 #0C0D2E #181B5F #242990 #3137C1

Accessibility & contrast

On white

15.43
#181B5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#181B5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181B5F
15.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181B5F#FFFFFF#000000##FFFFFF
##181B5F1.0015.431.3615.43
#FFFFFF15.431.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002861
Deuteranopia (green-blind)
#00215E
Tritanopia (blue-blind)
#002D3A
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #181b5f;
/* rgb */ color: rgb(24, 27, 95);
/* oklch */ color: oklch(27.2% 0.118 273.5);
Tailwind
colors: {
  custom: {
    50: '#61578d',
    500: '#181b5f',
    950: '#000000',
  },
}
SCSS
$custom: #181b5f;
$custom-light: #61578d;
$custom-dark: #000000;
JSON
{
  "hex": "#181b5f",
  "rgb": {
    "r": 24,
    "g": 27,
    "b": 95
  },
  "hsl": {
    "h": 237.465,
    "s": 59.664,
    "l": 23.333
  },
  "oklch": {
    "l": 0.27209,
    "c": 0.11798,
    "h": 273.5
  },
  "luminance": 0.01804
}

Semantic roles & 50–950 ramp

primary
#181B5F
secondary
#95923D
accent
#DC45E3
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05030C
muted
#7A787D

Preview Lab

Preview with #181B5F

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

Preview Lab → · Contrast checker → · Palette generator →

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