#282152#282152

#282152 is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.5% C 0.086 H 286.1°. Best body text is #FFFFFF at 14.69:1 contrast (WCAG AA passes).

Color values

HEX#282152
RGBrgb(40, 33, 82)
HSLhsl(249, 43%, 23%)
HSVhsv(249, 60%, 32%)
CMYKcmyk(51.2%, 59.8%, 0%, 67.8%)
CIE-LABlab(16.25, 17.99, -29.00)
CIE-LCHlch(16.25, 34.13, 301.82°)
OKLaboklab(28.53% 0.0239 -0.0827)
OKLCHoklch(28.53% 0.086 286.1)
XYZxyz(2.9415, 2.1479, 8.2406)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282152 #4B5221
analogous
#213352 #282152 #402152
triadic
#282152 #522821 #215228
tetradic
#282152 #522133 #4B5221 #215240
square
#282152 #522133 #4B5221 #215240
split-complementary
#282152 #524021 #335221
monochromatic
#0B0916 #130F26 #282152 #3D337E #5344A9

Accessibility & contrast

On white

14.69
#282152 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#282152 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282152
14.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282152#FFFFFF#000000##FFFFFF
##2821521.0014.691.4314.69
#FFFFFF14.691.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#062A54
Deuteranopia (green-blind)
#052751
Tritanopia (blue-blind)
#1A2C36
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #282152;
/* rgb */ color: rgb(40, 33, 82);
/* oklch */ color: oklch(28.5% 0.086 286.1);
Tailwind
colors: {
  custom: {
    50: '#665c83',
    500: '#282152',
    950: '#000000',
  },
}
SCSS
$custom: #282152;
$custom-light: #665c83;
$custom-dark: #000000;
JSON
{
  "hex": "#282152",
  "rgb": {
    "r": 40,
    "g": 33,
    "b": 82
  },
  "hsl": {
    "h": 248.571,
    "s": 42.609,
    "l": 22.549
  },
  "oklch": {
    "l": 0.28533,
    "c": 0.08607,
    "h": 286.1
  },
  "luminance": 0.02148
}

Semantic roles & 50–950 ramp

primary
#282152
secondary
#7D8649
accent
#D255C1
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06040A
muted
#7A797C

Preview Lab

Preview with #282152

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

Preview Lab → · Contrast checker → · Palette generator →

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