#182A6B#182A6B

#182A6B is a dark, moderate blue. Relative luminance 0.029; OKLCH L 31.4% C 0.116 H 267.5°. Best body text is #FFFFFF at 13.27:1 contrast (WCAG AA passes).

Color values

HEX#182A6B
RGBrgb(24, 42, 107)
HSLhsl(227, 63%, 26%)
HSVhsv(227, 78%, 42%)
CMYKcmyk(77.6%, 60.7%, 0%, 58%)
CIE-LABlab(19.68, 18.02, -40.05)
CIE-LCHlch(19.68, 43.92, 294.22°)
OKLaboklab(31.44% -0.0051 -0.1155)
OKLCHoklch(31.44% 0.116 267.5)
XYZxyz(3.8576, 2.9112, 14.2657)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#182A6B #6B5918
analogous
#18536B #182A6B #2F186B
triadic
#182A6B #6B182A #2A6B18
tetradic
#182A6B #6B1853 #6B5918 #186B2F
square
#182A6B #6B1853 #6B5918 #186B2F
split-complementary
#182A6B #6B2F18 #536B18
monochromatic
#060A19 #0D1639 #182A6B #233E9D #2E51CF

Accessibility & contrast

On white

13.27
#182A6B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#182A6B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #182A6B
13.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##182A6B#FFFFFF#000000##FFFFFF
##182A6B1.0013.271.5813.27
#FFFFFF13.271.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346D
Deuteranopia (green-blind)
#002C6A
Tritanopia (blue-blind)
#003A46
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #182a6b;
/* rgb */ color: rgb(24, 42, 107);
/* oklch */ color: oklch(31.4% 0.116 267.5);
Tailwind
colors: {
  custom: {
    50: '#626396',
    500: '#182a6b',
    950: '#000000',
  },
}
SCSS
$custom: #182a6b;
$custom-light: #626396;
$custom-dark: #000000;
JSON
{
  "hex": "#182a6b",
  "rgb": {
    "r": 24,
    "g": 42,
    "b": 107
  },
  "hsl": {
    "h": 226.988,
    "s": 63.359,
    "l": 25.686
  },
  "oklch": {
    "l": 0.3144,
    "c": 0.11566,
    "h": 267.5
  },
  "luminance": 0.02912
}

Semantic roles & 50–950 ramp

primary
#182A6B
secondary
#A18B3E
accent
#C341E6
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050D
muted
#7A797E

Preview Lab

Preview with #182A6B

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

Preview Lab → · Contrast checker → · Palette generator →

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