#282971#282971

#282971 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.8% C 0.121 H 276.8°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#282971
RGBrgb(40, 41, 113)
HSLhsl(239, 48%, 30%)
HSVhsv(239, 65%, 44%)
CMYKcmyk(64.6%, 63.7%, 0%, 55.7%)
CIE-LABlab(20.94, 23.62, -41.85)
CIE-LCHlch(20.94, 48.06, 299.44°)
OKLaboklab(32.8% 0.0143 -0.1204)
OKLCHoklch(32.8% 0.121 276.8)
XYZxyz(4.6477, 3.2289, 15.9979)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282971 #717028
analogous
#284E71 #282971 #4B2871
triadic
#282971 #712829 #297128
tetradic
#282971 #71284E #717028 #28714B
square
#282971 #71284E #717028 #28714B
split-complementary
#282971 #714B28 #4E7128
monochromatic
#080817 #181944 #282971 #38399E #5253C2

Accessibility & contrast

On white

12.76
#282971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #282971
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282971#FFFFFF#000000##FFFFFF
##2829711.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003673
Deuteranopia (green-blind)
#002F70
Tritanopia (blue-blind)
#003B48
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #282971;
/* rgb */ color: rgb(40, 41, 113);
/* oklch */ color: oklch(32.8% 0.121 276.8);
Tailwind
colors: {
  custom: {
    50: '#6b639a',
    500: '#282971',
    950: '#000000',
  },
}
SCSS
$custom: #282971;
$custom-light: #6b639a;
$custom-dark: #000000;
JSON
{
  "hex": "#282971",
  "rgb": {
    "r": 40,
    "g": 41,
    "b": 113
  },
  "hsl": {
    "h": 239.178,
    "s": 47.712,
    "l": 30
  },
  "oklch": {
    "l": 0.32802,
    "c": 0.12126,
    "h": 276.8
  },
  "luminance": 0.03229
}

Semantic roles & 50–950 ramp

primary
#282971
secondary
#A3A252
accent
#D550D7
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #282971

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

Preview Lab → · Contrast checker → · Palette generator →

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