#181C7F#181C7F

#181C7F is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.9% C 0.160 H 270.6°. Best body text is #FFFFFF at 13.89:1 contrast (WCAG AA passes).

Color values

HEX#181C7F
RGBrgb(24, 28, 127)
HSLhsl(238, 68%, 30%)
HSVhsv(238, 81%, 50%)
CMYKcmyk(81.1%, 78%, 0%, 50.2%)
CIE-LABlab(18.17, 35.20, -55.38)
CIE-LCHlch(18.17, 65.62, 302.44°)
OKLaboklab(30.95% 0.0016 -0.1604)
OKLCHoklch(30.95% 0.16 270.6)
XYZxyz(4.6214, 2.5565, 20.3244)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181C7F #7F7B18
analogous
#18507F #181C7F #48187F
triadic
#181C7F #7F181C #1C7F18
tetradic
#181C7F #7F1850 #7F7B18 #187F48
square
#181C7F #7F1850 #7F7B18 #187F48
split-complementary
#181C7F #7F4818 #507F18
monochromatic
#05061A #0E114C #181C7F #2227B2 #383ED9

Accessibility & contrast

On white

13.89
#181C7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181C7F
13.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181C7F#FFFFFF#000000##FFFFFF
##181C7F1.0013.891.5113.89
#FFFFFF13.891.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.891.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #181c7f;
/* rgb */ color: rgb(24, 28, 127);
/* oklch */ color: oklch(30.9% 0.160 270.6);
Tailwind
colors: {
  custom: {
    50: '#6959a5',
    500: '#181c7f',
    950: '#000000',
  },
}
SCSS
$custom: #181c7f;
$custom-light: #6959a5;
$custom-dark: #000000;
JSON
{
  "hex": "#181c7f",
  "rgb": {
    "r": 24,
    "g": 28,
    "b": 127
  },
  "hsl": {
    "h": 237.67,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.30949,
    "c": 0.1604,
    "h": 270.6
  },
  "luminance": 0.02557
}

Semantic roles & 50–950 ramp

primary
#181C7F
secondary
#B3AF3F
accent
#E43DEB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #181C7F

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

Preview Lab → · Contrast checker → · Palette generator →

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