#181B62#181B62

#181B62 is a dark, vivid blue. Relative luminance 0.019; OKLCH L 27.5% C 0.122 H 273.2°. Best body text is #FFFFFF at 15.31:1 contrast (WCAG AA passes).

Color values

HEX#181B62
RGBrgb(24, 27, 98)
HSLhsl(238, 61%, 24%)
HSVhsv(238, 76%, 38%)
CMYKcmyk(75.5%, 72.4%, 0%, 61.6%)
CIE-LABlab(14.73, 25.06, -42.25)
CIE-LCHlch(14.73, 49.12, 300.68°)
OKLaboklab(27.53% 0.0067 -0.1221)
OKLCHoklch(27.53% 0.122 273.2)
XYZxyz(2.9725, 1.8596, 11.7552)
Luminance0.0186 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181B62 #625F18
analogous
#184062 #181B62 #3A1862
triadic
#181B62 #62181B #1B6218
tetradic
#181B62 #621840 #625F18 #18623A
square
#181B62 #621840 #625F18 #18623A
split-complementary
#181B62 #623A18 #406218
monochromatic
#060719 #0C0D31 #181B62 #242993 #3036C4

Accessibility & contrast

On white

15.31
#181B62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#181B62 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181B62
15.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181B62#FFFFFF#000000##FFFFFF
##181B621.0015.311.3715.31
#FFFFFF15.311.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002964
Deuteranopia (green-blind)
#002261
Tritanopia (blue-blind)
#002E3C
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #181b62;
/* rgb */ color: rgb(24, 27, 98);
/* oklch */ color: oklch(27.5% 0.122 273.2);
Tailwind
colors: {
  custom: {
    50: '#61578f',
    500: '#181b62',
    950: '#000000',
  },
}
SCSS
$custom: #181b62;
$custom-light: #61578f;
$custom-dark: #000000;
JSON
{
  "hex": "#181b62",
  "rgb": {
    "r": 24,
    "g": 27,
    "b": 98
  },
  "hsl": {
    "h": 237.568,
    "s": 60.656,
    "l": 23.922
  },
  "oklch": {
    "l": 0.27528,
    "c": 0.12231,
    "h": 273.2
  },
  "luminance": 0.0186
}

Semantic roles & 50–950 ramp

primary
#181B62
secondary
#98953E
accent
#DD44E4
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #181B62

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

Preview Lab → · Contrast checker → · Palette generator →

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