#282E76#282E76

#282E76 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.2% C 0.122 H 274.4°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#282E76
RGBrgb(40, 46, 118)
HSLhsl(235, 49%, 31%)
HSVhsv(235, 66%, 46%)
CMYKcmyk(66.1%, 61%, 0%, 53.7%)
CIE-LABlab(22.70, 22.04, -42.19)
CIE-LCHlch(22.70, 47.60, 297.59°)
OKLaboklab(34.24% 0.0093 -0.1214)
OKLCHoklch(34.24% 0.122 274.4)
XYZxyz(5.1210, 3.7127, 17.5828)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282E76 #767028
analogous
#285576 #282E76 #492876
triadic
#282E76 #76282E #2E7628
tetradic
#282E76 #762855 #767028 #287649
square
#282E76 #762855 #767028 #287649
split-complementary
#282E76 #764928 #557628
monochromatic
#090A1B #191C48 #282E76 #3740A4 #545CC5

Accessibility & contrast

On white

12.05
#282E76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#282E76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282E76
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282E76#FFFFFF#000000##FFFFFF
##282E761.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A78
Deuteranopia (green-blind)
#003375
Tritanopia (blue-blind)
#00404D
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #282e76;
/* rgb */ color: rgb(40, 46, 118);
/* oklch */ color: oklch(34.2% 0.122 274.4);
Tailwind
colors: {
  custom: {
    50: '#6c669e',
    500: '#282e76',
    950: '#000000',
  },
}
SCSS
$custom: #282e76;
$custom-light: #6c669e;
$custom-dark: #000000;
JSON
{
  "hex": "#282e76",
  "rgb": {
    "r": 40,
    "g": 46,
    "b": 118
  },
  "hsl": {
    "h": 235.385,
    "s": 49.367,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34235,
    "c": 0.12173,
    "h": 274.4
  },
  "luminance": 0.03713
}

Semantic roles & 50–950 ramp

primary
#282E76
secondary
#A8A152
accent
#CE4FD9
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #282E76

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

Preview Lab → · Contrast checker → · Palette generator →

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