#282A79#282A79

#282A79 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.7% C 0.131 H 275.7°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#282A79
RGBrgb(40, 42, 121)
HSLhsl(239, 50%, 32%)
HSVhsv(239, 67%, 47%)
CMYKcmyk(66.9%, 65.3%, 0%, 52.5%)
CIE-LABlab(21.90, 25.89, -45.41)
CIE-LCHlch(21.90, 52.27, 299.69°)
OKLaboklab(33.73% 0.013 -0.1308)
OKLCHoklch(33.73% 0.131 275.7)
XYZxyz(5.1531, 3.4871, 18.4870)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282A79 #797728
analogous
#285379 #282A79 #4F2879
triadic
#282A79 #79282A #2A7928
tetradic
#282A79 #792853 #797728 #28794F
square
#282A79 #792853 #797728 #28794F
split-complementary
#282A79 #794F28 #537928
monochromatic
#0A0A1D #191A4B #282A79 #373AA7 #5558C7

Accessibility & contrast

On white

12.37
#282A79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#282A79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282A79
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282A79#FFFFFF#000000##FFFFFF
##282A791.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387C
Deuteranopia (green-blind)
#003177
Tritanopia (blue-blind)
#003E4D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #282a79;
/* rgb */ color: rgb(40, 42, 121);
/* oklch */ color: oklch(33.7% 0.131 275.7);
Tailwind
colors: {
  custom: {
    50: '#6d63a0',
    500: '#282a79',
    950: '#000000',
  },
}
SCSS
$custom: #282a79;
$custom-light: #6d63a0;
$custom-dark: #000000;
JSON
{
  "hex": "#282a79",
  "rgb": {
    "r": 40,
    "g": 42,
    "b": 121
  },
  "hsl": {
    "h": 238.519,
    "s": 50.311,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33725,
    "c": 0.13149,
    "h": 275.7
  },
  "luminance": 0.03488
}

Semantic roles & 50–950 ramp

primary
#282A79
secondary
#ABA952
accent
#D64EDA
background
#F6F5FA
surface
#ECEAF3
border
#C7C6CD
text
#08050F
muted
#7A797F

Preview Lab

Preview with #282A79

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

Preview Lab → · Contrast checker → · Palette generator →

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