#282872#282872

#282872 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.7% C 0.124 H 277.1°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).

Color values

HEX#282872
RGBrgb(40, 40, 114)
HSLhsl(240, 48%, 30%)
HSVhsv(240, 65%, 45%)
CMYKcmyk(64.9%, 64.9%, 0%, 55.3%)
CIE-LABlab(20.76, 24.67, -42.78)
CIE-LCHlch(20.76, 49.38, 299.97°)
OKLaboklab(32.7% 0.0152 -0.1231)
OKLCHoklch(32.7% 0.124 277.1)
XYZxyz(4.6701, 3.1832, 16.2846)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282872 #727228
analogous
#284D72 #282872 #4D2872
triadic
#282872 #722828 #287228
tetradic
#282872 #72284D #727228 #28724D
square
#282872 #72284D #727228 #28724D
split-complementary
#282872 #724D28 #4D7228
monochromatic
#080817 #181845 #282872 #38389F #5252C2

Accessibility & contrast

On white

12.83
#282872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#282872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282872
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282872#FFFFFF#000000##FFFFFF
##2828721.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003574
Deuteranopia (green-blind)
#002F71
Tritanopia (blue-blind)
#003A49
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #282872;
/* rgb */ color: rgb(40, 40, 114);
/* oklch */ color: oklch(32.7% 0.124 277.1);
Tailwind
colors: {
  custom: {
    50: '#6b629b',
    500: '#282872',
    950: '#000000',
  },
}
SCSS
$custom: #282872;
$custom-light: #6b629b;
$custom-dark: #000000;
JSON
{
  "hex": "#282872",
  "rgb": {
    "r": 40,
    "g": 40,
    "b": 114
  },
  "hsl": {
    "h": 240,
    "s": 48.052,
    "l": 30.196
  },
  "oklch": {
    "l": 0.327,
    "c": 0.12408,
    "h": 277.1
  },
  "luminance": 0.03184
}

Semantic roles & 50–950 ramp

primary
#282872
secondary
#A4A452
accent
#D850D8
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #282872

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

Preview Lab → · Contrast checker → · Palette generator →

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