#282C52#282C52

#282C52 is a dark, moderate blue. Relative luminance 0.029; OKLCH L 31.0% C 0.068 H 277.1°. Best body text is #FFFFFF at 13.36:1 contrast (WCAG AA passes).

Color values

HEX#282C52
RGBrgb(40, 44, 82)
HSLhsl(234, 34%, 24%)
HSVhsv(234, 51%, 32%)
CMYKcmyk(51.2%, 46.3%, 0%, 67.8%)
CIE-LABlab(19.48, 10.15, -23.83)
CIE-LCHlch(19.48, 25.90, 293.08°)
OKLaboklab(30.97% 0.0084 -0.0674)
OKLCHoklch(30.97% 0.068 277.1)
XYZxyz(3.2983, 2.8615, 8.3595)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282C52 #524E28
analogous
#284152 #282C52 #392852
triadic
#282C52 #52282C #2C5228
tetradic
#282C52 #522841 #524E28 #285239
square
#282C52 #522841 #524E28 #285239
split-complementary
#282C52 #523928 #415228
monochromatic
#0A0B15 #141629 #282C52 #3C427B #5058A4

Accessibility & contrast

On white

13.36
#282C52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#282C52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282C52
13.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282C52#FFFFFF#000000##FFFFFF
##282C521.0013.361.5713.36
#FFFFFF13.361.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D3153
Deuteranopia (green-blind)
#1A2E51
Tritanopia (blue-blind)
#19343B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #282c52;
/* rgb */ color: rgb(40, 44, 82);
/* oklch */ color: oklch(31.0% 0.068 277.1);
Tailwind
colors: {
  custom: {
    50: '#656483',
    500: '#282c52',
    950: '#000000',
  },
}
SCSS
$custom: #282c52;
$custom-light: #656483;
$custom-dark: #000000;
JSON
{
  "hex": "#282c52",
  "rgb": {
    "r": 40,
    "g": 44,
    "b": 82
  },
  "hsl": {
    "h": 234.286,
    "s": 34.426,
    "l": 23.922
  },
  "oklch": {
    "l": 0.30971,
    "c": 0.06796,
    "h": 277.1
  },
  "luminance": 0.02862
}

Semantic roles & 50–950 ramp

primary
#282C52
secondary
#858051
accent
#C05DCB
background
#F6F6F8
surface
#EBEBEF
border
#C6C6CA
text
#06050A
muted
#7A7A7C

Preview Lab

Preview with #282C52

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

Preview Lab → · Contrast checker → · Palette generator →

#282C52 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva