#282972#282972

#282972 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 32.9% C 0.123 H 276.7°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#282972
RGBrgb(40, 41, 114)
HSLhsl(239, 48%, 30%)
HSVhsv(239, 65%, 45%)
CMYKcmyk(64.9%, 64%, 0%, 55.3%)
CIE-LABlab(21.02, 23.99, -42.35)
CIE-LCHlch(21.02, 48.68, 299.53°)
OKLaboklab(32.89% 0.0143 -0.1219)
OKLCHoklch(32.89% 0.123 276.7)
XYZxyz(4.7043, 3.2515, 16.2960)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282972 #727128
analogous
#284E72 #282972 #4C2872
triadic
#282972 #722829 #297228
tetradic
#282972 #72284E #727128 #28724C
square
#282972 #72284E #727128 #28724C
split-complementary
#282972 #724C28 #4E7228
monochromatic
#080817 #181945 #282972 #38399F #5254C2

Accessibility & contrast

On white

12.72
#282972 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#282972 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282972
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282972#FFFFFF#000000##FFFFFF
##2829721.0012.721.6512.72
#FFFFFF12.721.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003674
Deuteranopia (green-blind)
#002F71
Tritanopia (blue-blind)
#003B49
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #282972;
/* rgb */ color: rgb(40, 41, 114);
/* oklch */ color: oklch(32.9% 0.123 276.7);
Tailwind
colors: {
  custom: {
    50: '#6b639b',
    500: '#282972',
    950: '#000000',
  },
}
SCSS
$custom: #282972;
$custom-light: #6b639b;
$custom-dark: #000000;
JSON
{
  "hex": "#282972",
  "rgb": {
    "r": 40,
    "g": 41,
    "b": 114
  },
  "hsl": {
    "h": 239.189,
    "s": 48.052,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32892,
    "c": 0.12272,
    "h": 276.7
  },
  "luminance": 0.03252
}

Semantic roles & 50–950 ramp

primary
#282972
secondary
#A4A352
accent
#D650D8
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #282972

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

Preview Lab → · Contrast checker → · Palette generator →

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