#181C7E#181C7E

#181C7E is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.8% C 0.159 H 270.6°. Best body text is #FFFFFF at 13.94:1 contrast (WCAG AA passes).

Color values

HEX#181C7E
RGBrgb(24, 28, 126)
HSLhsl(238, 68%, 29%)
HSVhsv(238, 81%, 49%)
CMYKcmyk(81%, 77.8%, 0%, 50.6%)
CIE-LABlab(18.06, 34.84, -54.94)
CIE-LCHlch(18.06, 65.06, 302.38°)
OKLaboklab(30.83% 0.0018 -0.1591)
OKLCHoklch(30.83% 0.159 270.6)
XYZxyz(4.5566, 2.5305, 19.9829)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181C7E #7E7A18
analogous
#184F7E #181C7E #47187E
triadic
#181C7E #7E181C #1C7E18
tetradic
#181C7E #7E184F #7E7A18 #187E47
square
#181C7E #7E184F #7E7A18 #187E47
split-complementary
#181C7E #7E4718 #4F7E18
monochromatic
#05061A #0E114B #181C7E #2227B1 #373ED9

Accessibility & contrast

On white

13.94
#181C7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#181C7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181C7E
13.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181C7E#FFFFFF#000000##FFFFFF
##181C7E1.0013.941.5113.94
#FFFFFF13.941.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003181
Deuteranopia (green-blind)
#00277C
Tritanopia (blue-blind)
#00394C
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #181c7e;
/* rgb */ color: rgb(24, 28, 126);
/* oklch */ color: oklch(30.8% 0.159 270.6);
Tailwind
colors: {
  custom: {
    50: '#6959a5',
    500: '#181c7e',
    950: '#000000',
  },
}
SCSS
$custom: #181c7e;
$custom-light: #6959a5;
$custom-dark: #000000;
JSON
{
  "hex": "#181c7e",
  "rgb": {
    "r": 24,
    "g": 28,
    "b": 126
  },
  "hsl": {
    "h": 237.647,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.30832,
    "c": 0.15911,
    "h": 270.6
  },
  "luminance": 0.02531
}

Semantic roles & 50–950 ramp

primary
#181C7E
secondary
#B2AE3F
accent
#E43DEB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #181C7E

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

Preview Lab → · Contrast checker → · Palette generator →

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