#282A8E#282A8E

#282A8E is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.8% C 0.160 H 273.9°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#282A8E
RGBrgb(40, 42, 142)
HSLhsl(239, 56%, 36%)
HSVhsv(239, 72%, 56%)
CMYKcmyk(71.8%, 70.4%, 0%, 44.3%)
CIE-LABlab(23.87, 33.51, -55.38)
CIE-LCHlch(23.87, 64.73, 301.17°)
OKLaboklab(35.76% 0.0108 -0.1601)
OKLCHoklch(35.76% 0.16 273.9)
XYZxyz(6.5839, 4.0594, 26.0225)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282A8E #8E8C28
analogous
#285D8E #282A8E #59288E
triadic
#282A8E #8E282A #2A8E28
tetradic
#282A8E #8E285D #8E8C28 #288E59
square
#282A8E #8E285D #8E8C28 #288E59
split-complementary
#282A8E #8E5928 #5D8E28
monochromatic
#0D0E2F #1B1C5E #282A8E #3538BE #5F61D2

Accessibility & contrast

On white

11.59
#282A8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#282A8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282A8E
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282A8E#FFFFFF#000000##FFFFFF
##282A8E1.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E91
Deuteranopia (green-blind)
#00348C
Tritanopia (blue-blind)
#004558
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #282a8e;
/* rgb */ color: rgb(40, 42, 142);
/* oklch */ color: oklch(35.8% 0.160 273.9);
Tailwind
colors: {
  custom: {
    50: '#7164b0',
    500: '#282a8e',
    950: '#000000',
  },
}
SCSS
$custom: #282a8e;
$custom-light: #7164b0;
$custom-dark: #000000;
JSON
{
  "hex": "#282a8e",
  "rgb": {
    "r": 40,
    "g": 42,
    "b": 142
  },
  "hsl": {
    "h": 238.824,
    "s": 56.044,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35762,
    "c": 0.16042,
    "h": 273.9
  },
  "luminance": 0.0406
}

Semantic roles & 50–950 ramp

primary
#282A8E
secondary
#B7B55B
accent
#DC48DF
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #282A8E

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

Preview Lab → · Contrast checker → · Palette generator →

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