#282A87#282A87

#282A87 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.1% C 0.151 H 274.4°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#282A87
RGBrgb(40, 42, 135)
HSLhsl(239, 54%, 34%)
HSVhsv(239, 70%, 53%)
CMYKcmyk(70.4%, 68.9%, 0%, 47.1%)
CIE-LABlab(23.19, 30.99, -52.13)
CIE-LCHlch(23.19, 60.65, 300.73°)
OKLaboklab(35.06% 0.0117 -0.1506)
OKLCHoklch(35.06% 0.151 274.4)
XYZxyz(6.0748, 3.8558, 23.3411)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282A87 #878528
analogous
#285A87 #282A87 #562887
triadic
#282A87 #87282A #2A8728
tetradic
#282A87 #87285A #878528 #288756
square
#282A87 #87285A #878528 #288756
split-complementary
#282A87 #875628 #5A8728
monochromatic
#0C0D29 #1A1B58 #282A87 #3639B6 #5B5DCE

Accessibility & contrast

On white

11.86
#282A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#282A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282A87
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282A87#FFFFFF#000000##FFFFFF
##282A871.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8A
Deuteranopia (green-blind)
#003385
Tritanopia (blue-blind)
#004354
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #282a87;
/* rgb */ color: rgb(40, 42, 135);
/* oklch */ color: oklch(35.1% 0.151 274.4);
Tailwind
colors: {
  custom: {
    50: '#7064ab',
    500: '#282a87',
    950: '#000000',
  },
}
SCSS
$custom: #282a87;
$custom-light: #7064ab;
$custom-dark: #000000;
JSON
{
  "hex": "#282a87",
  "rgb": {
    "r": 40,
    "g": 42,
    "b": 135
  },
  "hsl": {
    "h": 238.737,
    "s": 54.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35064,
    "c": 0.15101,
    "h": 274.4
  },
  "luminance": 0.03856
}

Semantic roles & 50–950 ramp

primary
#282A87
secondary
#B4B257
accent
#DB4ADE
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080510
muted
#7B7A7F

Preview Lab

Preview with #282A87

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

Preview Lab → · Contrast checker → · Palette generator →

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