#181A5F#181A5F

#181A5F is a dark, moderate blue. Relative luminance 0.018; OKLCH L 27.0% C 0.119 H 273.8°. Best body text is #FFFFFF at 15.53:1 contrast (WCAG AA passes).

Color values

HEX#181A5F
RGBrgb(24, 26, 95)
HSLhsl(238, 60%, 23%)
HSVhsv(238, 75%, 37%)
CMYKcmyk(74.7%, 72.6%, 0%, 62.7%)
CIE-LABlab(14.17, 24.59, -41.18)
CIE-LCHlch(14.17, 47.96, 300.85°)
OKLaboklab(27.02% 0.0079 -0.119)
OKLCHoklch(27.02% 0.119 273.8)
XYZxyz(2.8110, 1.7589, 11.0156)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181A5F #5F5D18
analogous
#183D5F #181A5F #39185F
triadic
#181A5F #5F181A #1A5F18
tetradic
#181A5F #5F183D #5F5D18 #185F39
square
#181A5F #5F183D #5F5D18 #185F39
split-complementary
#181A5F #5F3918 #3D5F18
monochromatic
#060718 #0C0D2E #181A5F #242790 #3135C1

Accessibility & contrast

On white

15.53
#181A5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#181A5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181A5F
15.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181A5F#FFFFFF#000000##FFFFFF
##181A5F1.0015.531.3515.53
#FFFFFF15.531.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.531.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #181a5f;
/* rgb */ color: rgb(24, 26, 95);
/* oklch */ color: oklch(27.0% 0.119 273.8);
Tailwind
colors: {
  custom: {
    50: '#61578d',
    500: '#181a5f',
    950: '#000000',
  },
}
SCSS
$custom: #181a5f;
$custom-light: #61578d;
$custom-dark: #000000;
JSON
{
  "hex": "#181a5f",
  "rgb": {
    "r": 24,
    "g": 26,
    "b": 95
  },
  "hsl": {
    "h": 238.31,
    "s": 59.664,
    "l": 23.333
  },
  "oklch": {
    "l": 0.27024,
    "c": 0.11926,
    "h": 273.8
  },
  "luminance": 0.01759
}

Semantic roles & 50–950 ramp

primary
#181A5F
secondary
#95933D
accent
#DE45E3
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05030C
muted
#7A787D

Preview Lab

Preview with #181A5F

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

Preview Lab → · Contrast checker → · Palette generator →

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