#181C62#181C62

#181C62 is a dark, vivid blue. Relative luminance 0.019; OKLCH L 27.7% C 0.121 H 272.9°. Best body text is #FFFFFF at 15.20:1 contrast (WCAG AA passes).

Color values

HEX#181C62
RGBrgb(24, 28, 98)
HSLhsl(237, 61%, 24%)
HSVhsv(237, 76%, 38%)
CMYKcmyk(75.5%, 71.4%, 0%, 61.6%)
CIE-LABlab(14.99, 24.38, -41.83)
CIE-LCHlch(14.99, 48.41, 300.23°)
OKLaboklab(27.71% 0.006 -0.1209)
OKLCHoklch(27.71% 0.121 272.9)
XYZxyz(2.9958, 1.9062, 11.7630)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181C62 #625E18
analogous
#184162 #181C62 #391862
triadic
#181C62 #62181C #1C6218
tetradic
#181C62 #621841 #625E18 #186239
square
#181C62 #621841 #625E18 #186239
split-complementary
#181C62 #623918 #416218
monochromatic
#060719 #0C0E31 #181C62 #242A93 #3038C4

Accessibility & contrast

On white

15.20
#181C62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181C62
15.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181C62#FFFFFF#000000##FFFFFF
##181C621.0015.201.3815.20
#FFFFFF15.201.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #181c62;
/* rgb */ color: rgb(24, 28, 98);
/* oklch */ color: oklch(27.7% 0.121 272.9);
Tailwind
colors: {
  custom: {
    50: '#61588f',
    500: '#181c62',
    950: '#000000',
  },
}
SCSS
$custom: #181c62;
$custom-light: #61588f;
$custom-dark: #000000;
JSON
{
  "hex": "#181c62",
  "rgb": {
    "r": 24,
    "g": 28,
    "b": 98
  },
  "hsl": {
    "h": 236.757,
    "s": 60.656,
    "l": 23.922
  },
  "oklch": {
    "l": 0.27713,
    "c": 0.12104,
    "h": 272.9
  },
  "luminance": 0.01907
}

Semantic roles & 50–950 ramp

primary
#181C62
secondary
#98933E
accent
#DB44E4
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #181C62

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

Preview Lab → · Contrast checker → · Palette generator →

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