#181C7B#181C7B

#181C7B is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.5% C 0.155 H 270.9°. Best body text is #FFFFFF at 14.08:1 contrast (WCAG AA passes).

Color values

HEX#181C7B
RGBrgb(24, 28, 123)
HSLhsl(238, 67%, 29%)
HSVhsv(238, 80%, 48%)
CMYKcmyk(80.5%, 77.2%, 0%, 51.8%)
CIE-LABlab(17.71, 33.76, -53.60)
CIE-LCHlch(17.71, 63.35, 302.21°)
OKLaboklab(30.49% 0.0023 -0.1552)
OKLCHoklch(30.49% 0.155 270.9)
XYZxyz(4.3659, 2.4543, 18.9787)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181C7B #7B7718
analogous
#184E7B #181C7B #46187B
triadic
#181C7B #7B181C #1C7B18
tetradic
#181C7B #7B184E #7B7718 #187B46
square
#181C7B #7B184E #7B7718 #187B46
split-complementary
#181C7B #7B4618 #4E7B18
monochromatic
#05061A #0E1048 #181C7B #2228AE #363CD8

Accessibility & contrast

On white

14.08
#181C7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181C7B
14.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181C7B#FFFFFF#000000##FFFFFF
##181C7B1.0014.081.4914.08
#FFFFFF14.081.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307E
Deuteranopia (green-blind)
#002679
Tritanopia (blue-blind)
#00384A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #181c7b;
/* rgb */ color: rgb(24, 28, 123);
/* oklch */ color: oklch(30.5% 0.155 270.9);
Tailwind
colors: {
  custom: {
    50: '#6859a2',
    500: '#181c7b',
    950: '#000000',
  },
}
SCSS
$custom: #181c7b;
$custom-light: #6859a2;
$custom-dark: #000000;
JSON
{
  "hex": "#181c7b",
  "rgb": {
    "r": 24,
    "g": 28,
    "b": 123
  },
  "hsl": {
    "h": 237.576,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.30485,
    "c": 0.15523,
    "h": 270.9
  },
  "luminance": 0.02455
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #181C7B

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

Preview Lab → · Contrast checker → · Palette generator →

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