#182A5F#182A5F

#182A5F is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.4% C 0.097 H 266.5°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#182A5F
RGBrgb(24, 42, 95)
HSLhsl(225, 60%, 23%)
HSVhsv(225, 75%, 37%)
CMYKcmyk(74.7%, 55.8%, 0%, 62.7%)
CIE-LABlab(18.70, 13.06, -33.80)
CIE-LCHlch(18.70, 36.23, 291.12°)
OKLaboklab(30.38% -0.006 -0.0971)
OKLCHoklch(30.38% 0.097 266.5)
XYZxyz(3.2695, 2.6760, 11.1685)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#182A5F #5F4D18
analogous
#184D5F #182A5F #29185F
triadic
#182A5F #5F182A #2A5F18
tetradic
#182A5F #5F184D #5F4D18 #185F29
square
#182A5F #5F184D #5F4D18 #185F29
split-complementary
#182A5F #5F2918 #4D5F18
monochromatic
#060B18 #0C142E #182A5F #244090 #3155C1

Accessibility & contrast

On white

13.68
#182A5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#182A5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #182A5F
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##182A5F#FFFFFF#000000##FFFFFF
##182A5F1.0013.681.5413.68
#FFFFFF13.681.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#083161
Deuteranopia (green-blind)
#002A5E
Tritanopia (blue-blind)
#003740
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #182a5f;
/* rgb */ color: rgb(24, 42, 95);
/* oklch */ color: oklch(30.4% 0.097 266.5);
Tailwind
colors: {
  custom: {
    50: '#5f638d',
    500: '#182a5f',
    950: '#000000',
  },
}
SCSS
$custom: #182a5f;
$custom-light: #5f638d;
$custom-dark: #000000;
JSON
{
  "hex": "#182a5f",
  "rgb": {
    "r": 24,
    "g": 42,
    "b": 95
  },
  "hsl": {
    "h": 224.789,
    "s": 59.664,
    "l": 23.333
  },
  "oklch": {
    "l": 0.30384,
    "c": 0.09733,
    "h": 266.5
  },
  "luminance": 0.02676
}

Semantic roles & 50–950 ramp

primary
#182A5F
secondary
#957F3D
accent
#BB45E3
background
#F5F5F8
surface
#EAEAF0
border
#C6C6CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #182A5F

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

Preview Lab → · Contrast checker → · Palette generator →

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