#182858#182858

#182858 is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.3% C 0.089 H 266.9°. Best body text is #FFFFFF at 14.16:1 contrast (WCAG AA passes).

Color values

HEX#182858
RGBrgb(24, 40, 88)
HSLhsl(225, 57%, 22%)
HSVhsv(225, 73%, 35%)
CMYKcmyk(72.7%, 54.5%, 0%, 65.5%)
CIE-LABlab(17.53, 11.63, -31.02)
CIE-LCHlch(17.53, 33.13, 290.54°)
OKLaboklab(29.33% -0.0048 -0.089)
OKLCHoklch(29.33% 0.089 266.9)
XYZxyz(2.8963, 2.4161, 9.5443)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#182858 #584818
analogous
#184858 #182858 #281858
triadic
#182858 #581828 #285818
tetradic
#182858 #581848 #584818 #185828
square
#182858 #581848 #584818 #185828
split-complementary
#182858 #582818 #485818
monochromatic
#070B18 #0B1228 #182858 #253E88 #3254B8

Accessibility & contrast

On white

14.16
#182858 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #182858
14.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##182858#FFFFFF#000000##FFFFFF
##1828581.0014.161.4814.16
#FFFFFF14.161.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #182858;
/* rgb */ color: rgb(24, 40, 88);
/* oklch */ color: oklch(29.3% 0.089 266.9);
Tailwind
colors: {
  custom: {
    50: '#5e6187',
    500: '#182858',
    950: '#000000',
  },
}
SCSS
$custom: #182858;
$custom-light: #5e6187;
$custom-dark: #000000;
JSON
{
  "hex": "#182858",
  "rgb": {
    "r": 24,
    "g": 40,
    "b": 88
  },
  "hsl": {
    "h": 225,
    "s": 57.143,
    "l": 21.961
  },
  "oklch": {
    "l": 0.29329,
    "c": 0.08915,
    "h": 266.9
  },
  "luminance": 0.02416
}

Semantic roles & 50–950 ramp

primary
#182858
secondary
#8F7A3D
accent
#BA47E0
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05050B
muted
#79797C

Preview Lab

Preview with #182858

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

Preview Lab → · Contrast checker → · Palette generator →

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