#282A89#282A89

#282A89 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.3% C 0.154 H 274.3°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#282A89
RGBrgb(40, 42, 137)
HSLhsl(239, 55%, 35%)
HSVhsv(239, 71%, 54%)
CMYKcmyk(70.8%, 69.3%, 0%, 46.3%)
CIE-LABlab(23.38, 31.71, -53.07)
CIE-LCHlch(23.38, 61.82, 300.86°)
OKLaboklab(35.26% 0.0115 -0.1533)
OKLCHoklch(35.26% 0.154 274.3)
XYZxyz(6.2169, 3.9126, 24.0896)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282A89 #898728
analogous
#285B89 #282A89 #572889
triadic
#282A89 #89282A #2A8928
tetradic
#282A89 #89285B #898728 #288957
square
#282A89 #89285B #898728 #288957
split-complementary
#282A89 #895728 #5B8928
monochromatic
#0C0D2A #1A1B5A #282A89 #3639B8 #5C5ECF

Accessibility & contrast

On white

11.78
#282A89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#282A89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282A89
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282A89#FFFFFF#000000##FFFFFF
##282A891.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8C
Deuteranopia (green-blind)
#003387
Tritanopia (blue-blind)
#004356
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #282a89;
/* rgb */ color: rgb(40, 42, 137);
/* oklch */ color: oklch(35.3% 0.154 274.3);
Tailwind
colors: {
  custom: {
    50: '#7064ac',
    500: '#282a89',
    950: '#000000',
  },
}
SCSS
$custom: #282a89;
$custom-light: #7064ac;
$custom-dark: #000000;
JSON
{
  "hex": "#282a89",
  "rgb": {
    "r": 40,
    "g": 42,
    "b": 137
  },
  "hsl": {
    "h": 238.763,
    "s": 54.802,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35262,
    "c": 0.15373,
    "h": 274.3
  },
  "luminance": 0.03913
}

Semantic roles & 50–950 ramp

primary
#282A89
secondary
#B5B358
accent
#DB4ADE
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #282A89

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

Preview Lab → · Contrast checker → · Palette generator →

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