#182857#182857

#182857 is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.2% C 0.088 H 266.8°. Best body text is #FFFFFF at 14.19:1 contrast (WCAG AA passes).

Color values

HEX#182857
RGBrgb(24, 40, 87)
HSLhsl(225, 57%, 22%)
HSVhsv(225, 72%, 34%)
CMYKcmyk(72.4%, 54%, 0%, 65.9%)
CIE-LABlab(17.46, 11.21, -30.48)
CIE-LCHlch(17.46, 32.48, 290.20°)
OKLaboklab(29.25% -0.0049 -0.0874)
OKLCHoklch(29.25% 0.088 266.8)
XYZxyz(2.8552, 2.3996, 9.3277)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#182857 #574718
analogous
#184857 #182857 #281857
triadic
#182857 #571828 #285718
tetradic
#182857 #571848 #574718 #185728
square
#182857 #571848 #574718 #185728
split-complementary
#182857 #572818 #485718
monochromatic
#070B18 #0B1227 #182857 #253E87 #3254B7

Accessibility & contrast

On white

14.19
#182857 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#182857 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #182857
14.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##182857#FFFFFF#000000##FFFFFF
##1828571.0014.191.4814.19
#FFFFFF14.191.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D2E59
Deuteranopia (green-blind)
#002856
Tritanopia (blue-blind)
#00333B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #182857;
/* rgb */ color: rgb(24, 40, 87);
/* oklch */ color: oklch(29.2% 0.088 266.8);
Tailwind
colors: {
  custom: {
    50: '#5d6187',
    500: '#182857',
    950: '#000000',
  },
}
SCSS
$custom: #182857;
$custom-light: #5d6187;
$custom-dark: #000000;
JSON
{
  "hex": "#182857",
  "rgb": {
    "r": 24,
    "g": 40,
    "b": 87
  },
  "hsl": {
    "h": 224.762,
    "s": 56.757,
    "l": 21.765
  },
  "oklch": {
    "l": 0.29247,
    "c": 0.08756,
    "h": 266.8
  },
  "luminance": 0.024
}

Semantic roles & 50–950 ramp

primary
#182857
secondary
#8E793D
accent
#B948E0
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05050B
muted
#79797C

Preview Lab

Preview with #182857

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

Preview Lab → · Contrast checker → · Palette generator →

#182857 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva