#182252#182252

#182252 is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.4% C 0.088 H 270.7°. Best body text is #FFFFFF at 15.11:1 contrast (WCAG AA passes).

Color values

HEX#182252
RGBrgb(24, 34, 82)
HSLhsl(230, 55%, 21%)
HSVhsv(230, 71%, 32%)
CMYKcmyk(70.7%, 58.5%, 0%, 67.8%)
CIE-LABlab(15.21, 13.61, -30.74)
CIE-LCHlch(15.21, 33.62, 293.88°)
OKLaboklab(27.42% 0.001 -0.0883)
OKLCHoklch(27.42% 0.088 270.7)
XYZxyz(2.4712, 1.9472, 8.2266)
Luminance0.0195 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#182252 #524818
analogous
#183F52 #182252 #2B1852
triadic
#182252 #521822 #225218
tetradic
#182252 #52183F #524818 #18522B
square
#182252 #52183F #524818 #18522B
split-complementary
#182252 #522B18 #3F5218
monochromatic
#070A18 #0A0E23 #182252 #263681 #3449B1

Accessibility & contrast

On white

15.11
#182252 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #182252
15.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##182252#FFFFFF#000000##FFFFFF
##1822521.0015.111.3915.11
#FFFFFF15.111.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#032954
Deuteranopia (green-blind)
#002451
Tritanopia (blue-blind)
#002D36
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #182252;
/* rgb */ color: rgb(24, 34, 82);
/* oklch */ color: oklch(27.4% 0.088 270.7);
Tailwind
colors: {
  custom: {
    50: '#5d5c83',
    500: '#182252',
    950: '#000000',
  },
}
SCSS
$custom: #182252;
$custom-light: #5d5c83;
$custom-dark: #000000;
JSON
{
  "hex": "#182252",
  "rgb": {
    "r": 24,
    "g": 34,
    "b": 82
  },
  "hsl": {
    "h": 229.655,
    "s": 54.717,
    "l": 20.784
  },
  "oklch": {
    "l": 0.27419,
    "c": 0.0883,
    "h": 270.7
  },
  "luminance": 0.01947
}

Semantic roles & 50–950 ramp

primary
#182252
secondary
#897C3D
accent
#C44ADE
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040A
muted
#79797C

Preview Lab

Preview with #182252

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

Preview Lab → · Contrast checker → · Palette generator →

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