#282A80#282A80

#282A80 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.4% C 0.141 H 275.0°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#282A80
RGBrgb(40, 42, 128)
HSLhsl(239, 52%, 33%)
HSVhsv(239, 69%, 50%)
CMYKcmyk(68.8%, 67.2%, 0%, 49.8%)
CIE-LABlab(22.53, 28.45, -48.81)
CIE-LCHlch(22.53, 56.49, 300.24°)
OKLaboklab(34.39% 0.0124 -0.1408)
OKLCHoklch(34.39% 0.141 275)
XYZxyz(5.5980, 3.6651, 20.8303)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282A80 #807E28
analogous
#285680 #282A80 #522880
triadic
#282A80 #80282A #2A8028
tetradic
#282A80 #802856 #807E28 #288052
square
#282A80 #802856 #807E28 #288052
split-complementary
#282A80 #805228 #568028
monochromatic
#0B0B23 #191B51 #282A80 #3739AF #585ACB

Accessibility & contrast

On white

12.12
#282A80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#282A80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282A80
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282A80#FFFFFF#000000##FFFFFF
##282A801.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A83
Deuteranopia (green-blind)
#00327E
Tritanopia (blue-blind)
#004051
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #282a80;
/* rgb */ color: rgb(40, 42, 128);
/* oklch */ color: oklch(34.4% 0.141 275.0);
Tailwind
colors: {
  custom: {
    50: '#6e64a6',
    500: '#282a80',
    950: '#000000',
  },
}
SCSS
$custom: #282a80;
$custom-light: #6e64a6;
$custom-dark: #000000;
JSON
{
  "hex": "#282a80",
  "rgb": {
    "r": 40,
    "g": 42,
    "b": 128
  },
  "hsl": {
    "h": 238.636,
    "s": 52.381,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34385,
    "c": 0.14137,
    "h": 275
  },
  "luminance": 0.03666
}

Semantic roles & 50–950 ramp

primary
#282A80
secondary
#B0AE54
accent
#D94CDC
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #282A80

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

Preview Lab → · Contrast checker → · Palette generator →

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