#282A96#282A96

#282A96 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.6% C 0.171 H 273.2°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#282A96
RGBrgb(40, 42, 150)
HSLhsl(239, 58%, 37%)
HSVhsv(239, 73%, 59%)
CMYKcmyk(73.3%, 72%, 0%, 41.2%)
CIE-LABlab(24.67, 36.34, -59.01)
CIE-LCHlch(24.67, 69.30, 301.63°)
OKLaboklab(36.58% 0.0097 -0.1707)
OKLCHoklch(36.58% 0.171 273.2)
XYZxyz(7.2062, 4.3083, 29.3001)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282A96 #969428
analogous
#286196 #282A96 #5D2896
triadic
#282A96 #96282A #2A9628
tetradic
#282A96 #962861 #969428 #28965D
square
#282A96 #962861 #969428 #28965D
split-complementary
#282A96 #965D28 #619628
monochromatic
#0E0F35 #1B1C66 #282A96 #3538C6 #6365D5

Accessibility & contrast

On white

11.28
#282A96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#282A96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282A96
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282A96#FFFFFF#000000##FFFFFF
##282A961.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004099
Deuteranopia (green-blind)
#003594
Tritanopia (blue-blind)
#00485D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #282a96;
/* rgb */ color: rgb(40, 42, 150);
/* oklch */ color: oklch(36.6% 0.171 273.2);
Tailwind
colors: {
  custom: {
    50: '#7364b6',
    500: '#282a96',
    950: '#000000',
  },
}
SCSS
$custom: #282a96;
$custom-light: #7364b6;
$custom-dark: #000000;
JSON
{
  "hex": "#282a96",
  "rgb": {
    "r": 40,
    "g": 42,
    "b": 150
  },
  "hsl": {
    "h": 238.909,
    "s": 57.895,
    "l": 37.255
  },
  "oklch": {
    "l": 0.36578,
    "c": 0.17093,
    "h": 273.2
  },
  "luminance": 0.04309
}

Semantic roles & 50–950 ramp

primary
#282A96
secondary
#BBB95F
accent
#DE47E1
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #282A96

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

Preview Lab → · Contrast checker → · Palette generator →

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