#282452#282452

#282452 is a dark, moderate blue. Relative luminance 0.023; OKLCH L 29.2% C 0.081 H 284.1°. Best body text is #FFFFFF at 14.34:1 contrast (WCAG AA passes).

Color values

HEX#282452
RGBrgb(40, 36, 82)
HSLhsl(245, 39%, 23%)
HSVhsv(245, 56%, 32%)
CMYKcmyk(51.2%, 56.1%, 0%, 67.8%)
CIE-LABlab(17.09, 15.87, -27.64)
CIE-LCHlch(17.09, 31.87, 299.86°)
OKLaboklab(29.17% 0.0198 -0.0787)
OKLCHoklch(29.17% 0.081 284.1)
XYZxyz(3.0285, 2.3219, 8.2696)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282452 #4E5224
analogous
#243752 #282452 #3F2452
triadic
#282452 #522824 #245228
tetradic
#282452 #522437 #4E5224 #24523F
square
#282452 #522437 #4E5224 #24523F
split-complementary
#282452 #523F24 #375224
monochromatic
#0A0915 #131127 #282452 #3D377D #5149A7

Accessibility & contrast

On white

14.34
#282452 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#282452 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282452
14.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282452#FFFFFF#000000##FFFFFF
##2824521.0014.341.4614.34
#FFFFFF14.341.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E2C54
Deuteranopia (green-blind)
#0C2951
Tritanopia (blue-blind)
#1A2E37
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #282452;
/* rgb */ color: rgb(40, 36, 82);
/* oklch */ color: oklch(29.2% 0.081 284.1);
Tailwind
colors: {
  custom: {
    50: '#655e83',
    500: '#282452',
    950: '#000000',
  },
}
SCSS
$custom: #282452;
$custom-light: #655e83;
$custom-dark: #000000;
JSON
{
  "hex": "#282452",
  "rgb": {
    "r": 40,
    "g": 36,
    "b": 82
  },
  "hsl": {
    "h": 245.217,
    "s": 38.983,
    "l": 23.137
  },
  "oklch": {
    "l": 0.29166,
    "c": 0.08111,
    "h": 284.1
  },
  "luminance": 0.02322
}

Semantic roles & 50–950 ramp

primary
#282452
secondary
#81864C
accent
#CF59C5
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06040A
muted
#7A797C

Preview Lab

Preview with #282452

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

Preview Lab → · Contrast checker → · Palette generator →

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