#181F65#181F65

#181F65 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 28.6% C 0.122 H 271.7°. Best body text is #FFFFFF at 14.76:1 contrast (WCAG AA passes).

Color values

HEX#181F65
RGBrgb(24, 31, 101)
HSLhsl(235, 62%, 25%)
HSVhsv(235, 76%, 40%)
CMYKcmyk(76.2%, 69.3%, 0%, 60.4%)
CIE-LABlab(16.07, 23.46, -42.03)
CIE-LCHlch(16.07, 48.14, 299.17°)
OKLaboklab(28.6% 0.0036 -0.1215)
OKLCHoklch(28.6% 0.122 271.7)
XYZxyz(3.2148, 2.1134, 12.5479)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181F65 #655E18
analogous
#184665 #181F65 #371865
triadic
#181F65 #65181F #1F6518
tetradic
#181F65 #651846 #655E18 #186537
square
#181F65 #651846 #655E18 #186537
split-complementary
#181F65 #653718 #466518
monochromatic
#060819 #0C1034 #181F65 #242E96 #303DC8

Accessibility & contrast

On white

14.76
#181F65 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#181F65 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181F65
14.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181F65#FFFFFF#000000##FFFFFF
##181F651.0014.761.4214.76
#FFFFFF14.761.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C67
Deuteranopia (green-blind)
#002464
Tritanopia (blue-blind)
#00313F
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #181f65;
/* rgb */ color: rgb(24, 31, 101);
/* oklch */ color: oklch(28.6% 0.122 271.7);
Tailwind
colors: {
  custom: {
    50: '#625a92',
    500: '#181f65',
    950: '#000000',
  },
}
SCSS
$custom: #181f65;
$custom-light: #625a92;
$custom-dark: #000000;
JSON
{
  "hex": "#181f65",
  "rgb": {
    "r": 24,
    "g": 31,
    "b": 101
  },
  "hsl": {
    "h": 234.545,
    "s": 61.6,
    "l": 24.51
  },
  "oklch": {
    "l": 0.28595,
    "c": 0.12152,
    "h": 271.7
  },
  "luminance": 0.02114
}

Semantic roles & 50–950 ramp

primary
#181F65
secondary
#9B933E
accent
#D643E5
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06040D
muted
#7A797E

Preview Lab

Preview with #181F65

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

Preview Lab → · Contrast checker → · Palette generator →

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