#181B65#181B65

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

Color values

HEX#181B65
RGBrgb(24, 27, 101)
HSLhsl(238, 62%, 25%)
HSVhsv(238, 76%, 40%)
CMYKcmyk(76.2%, 73.3%, 0%, 60.4%)
CIE-LABlab(15.05, 26.22, -43.71)
CIE-LCHlch(15.05, 50.97, 300.95°)
OKLaboklab(27.85% 0.0064 -0.1264)
OKLCHoklch(27.85% 0.127 272.9)
XYZxyz(3.1168, 1.9173, 12.5152)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181B65 #656218
analogous
#184265 #181B65 #3C1865
triadic
#181B65 #65181B #1B6518
tetradic
#181B65 #651842 #656218 #18653C
square
#181B65 #651842 #656218 #18653C
split-complementary
#181B65 #653C18 #426518
monochromatic
#060719 #0C0E34 #181B65 #242896 #3035C8

Accessibility & contrast

On white

15.18
#181B65 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181B65
15.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181B65#FFFFFF#000000##FFFFFF
##181B651.0015.181.3815.18
#FFFFFF15.181.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002967
Deuteranopia (green-blind)
#002264
Tritanopia (blue-blind)
#002F3D
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #181b65;
/* rgb */ color: rgb(24, 27, 101);
/* oklch */ color: oklch(27.9% 0.127 272.9);
Tailwind
colors: {
  custom: {
    50: '#625892',
    500: '#181b65',
    950: '#000000',
  },
}
SCSS
$custom: #181b65;
$custom-light: #625892;
$custom-dark: #000000;
JSON
{
  "hex": "#181b65",
  "rgb": {
    "r": 24,
    "g": 27,
    "b": 101
  },
  "hsl": {
    "h": 237.662,
    "s": 61.6,
    "l": 24.51
  },
  "oklch": {
    "l": 0.27851,
    "c": 0.12656,
    "h": 272.9
  },
  "luminance": 0.01918
}

Semantic roles & 50–950 ramp

primary
#181B65
secondary
#9B983E
accent
#DE43E5
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06030D
muted
#7A787E

Preview Lab

Preview with #181B65

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

Preview Lab → · Contrast checker → · Palette generator →

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