#182256#182256

#182256 is a dark, moderate blue. Relative luminance 0.020; OKLCH L 27.8% C 0.095 H 270.8°. Best body text is #FFFFFF at 14.98:1 contrast (WCAG AA passes).

Color values

HEX#182256
RGBrgb(24, 34, 86)
HSLhsl(230, 56%, 22%)
HSVhsv(230, 72%, 34%)
CMYKcmyk(72.1%, 60.5%, 0%, 66.3%)
CIE-LABlab(15.54, 15.25, -32.91)
CIE-LCHlch(15.54, 36.27, 294.86°)
OKLaboklab(27.77% 0.0013 -0.0947)
OKLCHoklch(27.77% 0.095 270.8)
XYZxyz(2.6279, 2.0099, 9.0518)
Luminance0.0201 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#182256 #564C18
analogous
#184156 #182256 #2D1856
triadic
#182256 #561822 #225618
tetradic
#182256 #561841 #564C18 #18562D
square
#182256 #561841 #564C18 #18562D
split-complementary
#182256 #562D18 #415618
monochromatic
#070918 #0B0F26 #182256 #253586 #3348B6

Accessibility & contrast

On white

14.98
#182256 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#182256 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #182256
14.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##182256#FFFFFF#000000##FFFFFF
##1822561.0014.981.4014.98
#FFFFFF14.981.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A58
Deuteranopia (green-blind)
#002455
Tritanopia (blue-blind)
#002F38
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #182256;
/* rgb */ color: rgb(24, 34, 86);
/* oklch */ color: oklch(27.8% 0.095 270.8);
Tailwind
colors: {
  custom: {
    50: '#5e5c86',
    500: '#182256',
    950: '#000000',
  },
}
SCSS
$custom: #182256;
$custom-light: #5e5c86;
$custom-dark: #000000;
JSON
{
  "hex": "#182256",
  "rgb": {
    "r": 24,
    "g": 34,
    "b": 86
  },
  "hsl": {
    "h": 230.323,
    "s": 56.364,
    "l": 21.569
  },
  "oklch": {
    "l": 0.27772,
    "c": 0.09468,
    "h": 270.8
  },
  "luminance": 0.0201
}

Semantic roles & 50–950 ramp

primary
#182256
secondary
#8D803D
accent
#C748E0
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05040B
muted
#79797C

Preview Lab

Preview with #182256

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

Preview Lab → · Contrast checker → · Palette generator →

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