#181C7A#181C7A

#181C7A is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.4% C 0.154 H 270.9°. Best body text is #FFFFFF at 14.13:1 contrast (WCAG AA passes).

Color values

HEX#181C7A
RGBrgb(24, 28, 122)
HSLhsl(238, 67%, 29%)
HSVhsv(238, 80%, 48%)
CMYKcmyk(80.3%, 77%, 0%, 52.2%)
CIE-LABlab(17.60, 33.40, -53.15)
CIE-LCHlch(17.60, 62.77, 302.15°)
OKLaboklab(30.37% 0.0025 -0.1539)
OKLCHoklch(30.37% 0.154 270.9)
XYZxyz(4.3036, 2.4294, 18.6507)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181C7A #7A7618
analogous
#184D7A #181C7A #45187A
triadic
#181C7A #7A181C #1C7A18
tetradic
#181C7A #7A184D #7A7618 #187A45
square
#181C7A #7A184D #7A7618 #187A45
split-complementary
#181C7A #7A4518 #4D7A18
monochromatic
#05061A #0E1047 #181C7A #2228AD #353CD7

Accessibility & contrast

On white

14.13
#181C7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#181C7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181C7A
14.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181C7A#FFFFFF#000000##FFFFFF
##181C7A1.0014.131.4914.13
#FFFFFF14.131.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307D
Deuteranopia (green-blind)
#002678
Tritanopia (blue-blind)
#003749
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #181c7a;
/* rgb */ color: rgb(24, 28, 122);
/* oklch */ color: oklch(30.4% 0.154 270.9);
Tailwind
colors: {
  custom: {
    50: '#6859a2',
    500: '#181c7a',
    950: '#000000',
  },
}
SCSS
$custom: #181c7a;
$custom-light: #6859a2;
$custom-dark: #000000;
JSON
{
  "hex": "#181c7a",
  "rgb": {
    "r": 24,
    "g": 28,
    "b": 122
  },
  "hsl": {
    "h": 237.551,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.3037,
    "c": 0.15392,
    "h": 270.9
  },
  "luminance": 0.0243
}

Semantic roles & 50–950 ramp

primary
#181C7A
secondary
#AFAA3F
accent
#E33EEA
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07030F
muted
#7A787F

Preview Lab

Preview with #181C7A

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

Preview Lab → · Contrast checker → · Palette generator →

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