#181F58#181F58

#181F58 is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.3% C 0.102 H 272.4°. Best body text is #FFFFFF at 15.26:1 contrast (WCAG AA passes).

Color values

HEX#181F58
RGBrgb(24, 31, 88)
HSLhsl(233, 57%, 22%)
HSVhsv(233, 73%, 35%)
CMYKcmyk(72.7%, 64.8%, 0%, 65.5%)
CIE-LABlab(14.84, 18.27, -35.40)
CIE-LCHlch(14.84, 39.83, 297.30°)
OKLaboklab(27.3% 0.0042 -0.102)
OKLCHoklch(27.3% 0.102 272.4)
XYZxyz(2.6275, 1.8785, 9.4547)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181F58 #585118
analogous
#183F58 #181F58 #311858
triadic
#181F58 #58181F #1F5818
tetradic
#181F58 #58183F #585118 #185831
square
#181F58 #58183F #585118 #185831
split-complementary
#181F58 #583118 #3F5818
monochromatic
#070818 #0B0E28 #181F58 #253088 #3241B8

Accessibility & contrast

On white

15.26
#181F58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#181F58 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181F58
15.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181F58#FFFFFF#000000##FFFFFF
##181F581.0015.261.3815.26
#FFFFFF15.261.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285A
Deuteranopia (green-blind)
#002357
Tritanopia (blue-blind)
#002D38
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #181f58;
/* rgb */ color: rgb(24, 31, 88);
/* oklch */ color: oklch(27.3% 0.102 272.4);
Tailwind
colors: {
  custom: {
    50: '#5e5a88',
    500: '#181f58',
    950: '#000000',
  },
}
SCSS
$custom: #181f58;
$custom-light: #5e5a88;
$custom-dark: #000000;
JSON
{
  "hex": "#181f58",
  "rgb": {
    "r": 24,
    "g": 31,
    "b": 88
  },
  "hsl": {
    "h": 233.438,
    "s": 57.143,
    "l": 21.961
  },
  "oklch": {
    "l": 0.27304,
    "c": 0.10211,
    "h": 272.4
  },
  "luminance": 0.01879
}

Semantic roles & 50–950 ramp

primary
#181F58
secondary
#8F863D
accent
#D047E0
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030B
muted
#79787C

Preview Lab

Preview with #181F58

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

Preview Lab → · Contrast checker → · Palette generator →

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