#181E5F#181E5F

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

Color values

HEX#181E5F
RGBrgb(24, 30, 95)
HSLhsl(235, 60%, 23%)
HSVhsv(235, 75%, 37%)
CMYKcmyk(74.7%, 68.4%, 0%, 62.7%)
CIE-LABlab(15.22, 21.79, -39.46)
CIE-LCHlch(15.22, 45.08, 298.91°)
OKLaboklab(27.79% 0.0048 -0.1139)
OKLCHoklch(27.79% 0.114 272.4)
XYZxyz(2.9058, 1.9487, 11.0472)
Luminance0.0195 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181E5F #5F5918
analogous
#18415F #181E5F #35185F
triadic
#181E5F #5F181E #1E5F18
tetradic
#181E5F #5F1841 #5F5918 #185F35
square
#181E5F #5F1841 #5F5918 #185F35
split-complementary
#181E5F #5F3518 #415F18
monochromatic
#060818 #0C0F2E #181E5F #242D90 #313DC1

Accessibility & contrast

On white

15.11
#181E5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#181E5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181E5F
15.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181E5F#FFFFFF#000000##FFFFFF
##181E5F1.0015.111.3915.11
#FFFFFF15.111.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002961
Deuteranopia (green-blind)
#00235E
Tritanopia (blue-blind)
#002F3B
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #181e5f;
/* rgb */ color: rgb(24, 30, 95);
/* oklch */ color: oklch(27.8% 0.114 272.4);
Tailwind
colors: {
  custom: {
    50: '#60598d',
    500: '#181e5f',
    950: '#000000',
  },
}
SCSS
$custom: #181e5f;
$custom-light: #60598d;
$custom-dark: #000000;
JSON
{
  "hex": "#181e5f",
  "rgb": {
    "r": 24,
    "g": 30,
    "b": 95
  },
  "hsl": {
    "h": 234.93,
    "s": 59.664,
    "l": 23.333
  },
  "oklch": {
    "l": 0.27787,
    "c": 0.11405,
    "h": 272.4
  },
  "luminance": 0.01949
}

Semantic roles & 50–950 ramp

primary
#181E5F
secondary
#958E3D
accent
#D545E3
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05030C
muted
#7A787D

Preview Lab

Preview with #181E5F

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

Preview Lab → · Contrast checker → · Palette generator →

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