#182157#182157

#182157 is a dark, moderate blue. Relative luminance 0.020; OKLCH L 27.6% C 0.098 H 271.3°. Best body text is #FFFFFF at 15.06:1 contrast (WCAG AA passes).

Color values

HEX#182157
RGBrgb(24, 33, 87)
HSLhsl(231, 57%, 22%)
HSVhsv(231, 72%, 34%)
CMYKcmyk(72.4%, 62.1%, 0%, 65.9%)
CIE-LABlab(15.33, 16.39, -33.93)
CIE-LCHlch(15.33, 37.68, 295.79°)
OKLaboklab(27.64% 0.0023 -0.0977)
OKLCHoklch(27.64% 0.098 271.3)
XYZxyz(2.6403, 1.9698, 9.2560)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#182157 #574E18
analogous
#184157 #182157 #2F1857
triadic
#182157 #571821 #215718
tetradic
#182157 #571841 #574E18 #18572F
square
#182157 #571841 #574E18 #18572F
split-complementary
#182157 #572F18 #415718
monochromatic
#070918 #0B0F27 #182157 #253387 #3245B7

Accessibility & contrast

On white

15.06
#182157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#182157 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #182157
15.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##182157#FFFFFF#000000##FFFFFF
##1821571.0015.061.3915.06
#FFFFFF15.061.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002959
Deuteranopia (green-blind)
#002456
Tritanopia (blue-blind)
#002E38
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #182157;
/* rgb */ color: rgb(24, 33, 87);
/* oklch */ color: oklch(27.6% 0.098 271.3);
Tailwind
colors: {
  custom: {
    50: '#5e5c87',
    500: '#182157',
    950: '#000000',
  },
}
SCSS
$custom: #182157;
$custom-light: #5e5c87;
$custom-dark: #000000;
JSON
{
  "hex": "#182157",
  "rgb": {
    "r": 24,
    "g": 33,
    "b": 87
  },
  "hsl": {
    "h": 231.429,
    "s": 56.757,
    "l": 21.765
  },
  "oklch": {
    "l": 0.27641,
    "c": 0.0977,
    "h": 271.3
  },
  "luminance": 0.0197
}

Semantic roles & 50–950 ramp

primary
#182157
secondary
#8E823D
accent
#CA48E0
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05040B
muted
#79797C

Preview Lab

Preview with #182157

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

Preview Lab → · Contrast checker → · Palette generator →

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