#282A76#282A76

#282A76 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.4% C 0.127 H 275.9°. Best body text is #FFFFFF at 12.48:1 contrast (WCAG AA passes).

Color values

HEX#282A76
RGBrgb(40, 42, 118)
HSLhsl(238, 49%, 31%)
HSVhsv(238, 66%, 46%)
CMYKcmyk(66.1%, 64.4%, 0%, 53.7%)
CIE-LABlab(21.63, 24.78, -43.92)
CIE-LCHlch(21.63, 50.43, 299.43°)
OKLaboklab(33.45% 0.0131 -0.1265)
OKLCHoklch(33.45% 0.127 275.9)
XYZxyz(4.9720, 3.4146, 17.5331)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282A76 #767428
analogous
#285176 #282A76 #4D2876
triadic
#282A76 #76282A #2A7628
tetradic
#282A76 #762851 #767428 #28764D
square
#282A76 #762851 #767428 #28764D
split-complementary
#282A76 #764D28 #517628
monochromatic
#09091B #191A48 #282A76 #373AA4 #5456C5

Accessibility & contrast

On white

12.48
#282A76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#282A76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282A76
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282A76#FFFFFF#000000##FFFFFF
##282A761.0012.481.6812.48
#FFFFFF12.481.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003778
Deuteranopia (green-blind)
#003075
Tritanopia (blue-blind)
#003D4B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #282a76;
/* rgb */ color: rgb(40, 42, 118);
/* oklch */ color: oklch(33.4% 0.127 275.9);
Tailwind
colors: {
  custom: {
    50: '#6c639e',
    500: '#282a76',
    950: '#000000',
  },
}
SCSS
$custom: #282a76;
$custom-light: #6c639e;
$custom-dark: #000000;
JSON
{
  "hex": "#282a76",
  "rgb": {
    "r": 40,
    "g": 42,
    "b": 118
  },
  "hsl": {
    "h": 238.462,
    "s": 49.367,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33448,
    "c": 0.12718,
    "h": 275.9
  },
  "luminance": 0.03415
}

Semantic roles & 50–950 ramp

primary
#282A76
secondary
#A8A652
accent
#D54FD9
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #282A76

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

Preview Lab → · Contrast checker → · Palette generator →

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