#182A7F#182A7F

#182A7F is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.4% C 0.144 H 267.9°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#182A7F
RGBrgb(24, 42, 127)
HSLhsl(230, 68%, 30%)
HSVhsv(230, 81%, 50%)
CMYKcmyk(81.1%, 66.9%, 0%, 50.2%)
CIE-LABlab(21.51, 26.08, -49.88)
CIE-LCHlch(21.51, 56.29, 297.60°)
OKLaboklab(33.36% -0.0052 -0.1444)
OKLCHoklch(33.36% 0.144 267.9)
XYZxyz(5.0341, 3.3819, 20.4620)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#182A7F #7F6D18
analogous
#185D7F #182A7F #3A187F
triadic
#182A7F #7F182A #2A7F18
tetradic
#182A7F #7F185D #7F6D18 #187F3A
square
#182A7F #7F185D #7F6D18 #187F3A
split-complementary
#182A7F #7F3A18 #5D7F18
monochromatic
#05091A #0E194C #182A7F #223BB2 #3854D9

Accessibility & contrast

On white

12.53
#182A7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#182A7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #182A7F
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##182A7F#FFFFFF#000000##FFFFFF
##182A7F1.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003982
Deuteranopia (green-blind)
#002F7D
Tritanopia (blue-blind)
#004150
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #182a7f;
/* rgb */ color: rgb(24, 42, 127);
/* oklch */ color: oklch(33.4% 0.144 267.9);
Tailwind
colors: {
  custom: {
    50: '#6863a5',
    500: '#182a7f',
    950: '#000000',
  },
}
SCSS
$custom: #182a7f;
$custom-light: #6863a5;
$custom-dark: #000000;
JSON
{
  "hex": "#182a7f",
  "rgb": {
    "r": 24,
    "g": 42,
    "b": 127
  },
  "hsl": {
    "h": 229.515,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.33361,
    "c": 0.14446,
    "h": 267.9
  },
  "luminance": 0.03382
}

Semantic roles & 50–950 ramp

primary
#182A7F
secondary
#B39F3F
accent
#CD3DEB
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #182A7F

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

Preview Lab → · Contrast checker → · Palette generator →

#182A7F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva