#181A58#181A58

#181A58 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 26.3% C 0.109 H 274.6°. Best body text is #FFFFFF at 15.82:1 contrast (WCAG AA passes).

Color values

HEX#181A58
RGBrgb(24, 26, 88)
HSLhsl(238, 57%, 22%)
HSVhsv(238, 73%, 35%)
CMYKcmyk(72.7%, 70.5%, 0%, 65.5%)
CIE-LABlab(13.46, 21.87, -37.65)
CIE-LCHlch(13.46, 43.55, 300.15°)
OKLaboklab(26.29% 0.0087 -0.1087)
OKLCHoklch(26.29% 0.109 274.6)
XYZxyz(2.5070, 1.6373, 9.4145)
Luminance0.0164 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181A58 #585618
analogous
#183A58 #181A58 #361858
triadic
#181A58 #58181A #1A5818
tetradic
#181A58 #58183A #585618 #185836
square
#181A58 #58183A #585618 #185836
split-complementary
#181A58 #583618 #3A5818
monochromatic
#070718 #0B0C28 #181A58 #252888 #3236B8

Accessibility & contrast

On white

15.82
#181A58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#181A58 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181A58
15.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181A58#FFFFFF#000000##FFFFFF
##181A581.0015.821.3315.82
#FFFFFF15.821.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255A
Deuteranopia (green-blind)
#002057
Tritanopia (blue-blind)
#002A36
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #181a58;
/* rgb */ color: rgb(24, 26, 88);
/* oklch */ color: oklch(26.3% 0.109 274.6);
Tailwind
colors: {
  custom: {
    50: '#5f5688',
    500: '#181a58',
    950: '#000000',
  },
}
SCSS
$custom: #181a58;
$custom-light: #5f5688;
$custom-dark: #000000;
JSON
{
  "hex": "#181a58",
  "rgb": {
    "r": 24,
    "g": 26,
    "b": 88
  },
  "hsl": {
    "h": 238.125,
    "s": 57.143,
    "l": 21.961
  },
  "oklch": {
    "l": 0.26289,
    "c": 0.10902,
    "h": 274.6
  },
  "luminance": 0.01638
}

Semantic roles & 50–950 ramp

primary
#181A58
secondary
#8F8C3D
accent
#DC47E0
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030B
muted
#79787C

Preview Lab

Preview with #181A58

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

Preview Lab → · Contrast checker → · Palette generator →

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