#181C7C#181C7C

#181C7C is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.6% C 0.157 H 270.8°. Best body text is #FFFFFF at 14.04:1 contrast (WCAG AA passes).

Color values

HEX#181C7C
RGBrgb(24, 28, 124)
HSLhsl(238, 68%, 29%)
HSVhsv(238, 81%, 49%)
CMYKcmyk(80.6%, 77.4%, 0%, 51.4%)
CIE-LABlab(17.83, 34.12, -54.05)
CIE-LCHlch(17.83, 63.92, 302.27°)
OKLaboklab(30.6% 0.0021 -0.1565)
OKLCHoklch(30.6% 0.157 270.8)
XYZxyz(4.4288, 2.4794, 19.3100)
Luminance0.0248 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181C7C #7C7818
analogous
#184E7C #181C7C #46187C
triadic
#181C7C #7C181C #1C7C18
tetradic
#181C7C #7C184E #7C7818 #187C46
square
#181C7C #7C184E #7C7818 #187C46
split-complementary
#181C7C #7C4618 #4E7C18
monochromatic
#05061A #0E1049 #181C7C #2228AF #363DD8

Accessibility & contrast

On white

14.04
#181C7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#181C7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181C7C
14.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181C7C#FFFFFF#000000##FFFFFF
##181C7C1.0014.041.5014.04
#FFFFFF14.041.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317F
Deuteranopia (green-blind)
#00277A
Tritanopia (blue-blind)
#00384A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #181c7c;
/* rgb */ color: rgb(24, 28, 124);
/* oklch */ color: oklch(30.6% 0.157 270.8);
Tailwind
colors: {
  custom: {
    50: '#6959a3',
    500: '#181c7c',
    950: '#000000',
  },
}
SCSS
$custom: #181c7c;
$custom-light: #6959a3;
$custom-dark: #000000;
JSON
{
  "hex": "#181c7c",
  "rgb": {
    "r": 24,
    "g": 28,
    "b": 124
  },
  "hsl": {
    "h": 237.6,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.306,
    "c": 0.15652,
    "h": 270.8
  },
  "luminance": 0.0248
}

Semantic roles & 50–950 ramp

primary
#181C7C
secondary
#B1AC3F
accent
#E43DEA
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07030F
muted
#7A787F

Preview Lab

Preview with #181C7C

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

Preview Lab → · Contrast checker → · Palette generator →

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