#282A8A#282A8A

#282A8A is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.4% C 0.155 H 274.2°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#282A8A
RGBrgb(40, 42, 138)
HSLhsl(239, 55%, 35%)
HSVhsv(239, 71%, 54%)
CMYKcmyk(71%, 69.6%, 0%, 45.9%)
CIE-LABlab(23.48, 32.07, -53.53)
CIE-LCHlch(23.48, 62.41, 300.93°)
OKLaboklab(35.36% 0.0113 -0.1547)
OKLCHoklch(35.36% 0.155 274.2)
XYZxyz(6.2890, 3.9414, 24.4692)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282A8A #8A8828
analogous
#285B8A #282A8A #57288A
triadic
#282A8A #8A282A #2A8A28
tetradic
#282A8A #8A285B #8A8828 #288A57
square
#282A8A #8A285B #8A8828 #288A57
split-complementary
#282A8A #8A5728 #5B8A28
monochromatic
#0C0D2B #1A1C5B #282A8A #3638B9 #5D5FD0

Accessibility & contrast

On white

11.74
#282A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#282A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282A8A
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282A8A#FFFFFF#000000##FFFFFF
##282A8A1.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8D
Deuteranopia (green-blind)
#003388
Tritanopia (blue-blind)
#004456
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #282a8a;
/* rgb */ color: rgb(40, 42, 138);
/* oklch */ color: oklch(35.4% 0.155 274.2);
Tailwind
colors: {
  custom: {
    50: '#7164ad',
    500: '#282a8a',
    950: '#000000',
  },
}
SCSS
$custom: #282a8a;
$custom-light: #7164ad;
$custom-dark: #000000;
JSON
{
  "hex": "#282a8a",
  "rgb": {
    "r": 40,
    "g": 42,
    "b": 138
  },
  "hsl": {
    "h": 238.776,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35361,
    "c": 0.15507,
    "h": 274.2
  },
  "luminance": 0.03942
}

Semantic roles & 50–950 ramp

primary
#282A8A
secondary
#B5B359
accent
#DB49DE
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #282A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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