#282A88#282A88

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

Color values

HEX#282A88
RGBrgb(40, 42, 136)
HSLhsl(239, 55%, 35%)
HSVhsv(239, 71%, 53%)
CMYKcmyk(70.6%, 69.1%, 0%, 46.7%)
CIE-LABlab(23.28, 31.35, -52.60)
CIE-LCHlch(23.28, 61.24, 300.80°)
OKLaboklab(35.16% 0.0116 -0.1519)
OKLCHoklch(35.16% 0.152 274.4)
XYZxyz(6.1455, 3.8840, 23.7136)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282A88 #888628
analogous
#285A88 #282A88 #562888
triadic
#282A88 #88282A #2A8828
tetradic
#282A88 #88285A #888628 #288856
square
#282A88 #88285A #888628 #288856
split-complementary
#282A88 #885628 #5A8828
monochromatic
#0C0D29 #1A1B59 #282A88 #3639B7 #5B5ECF

Accessibility & contrast

On white

11.82
#282A88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #282A88
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282A88#FFFFFF#000000##FFFFFF
##282A881.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8B
Deuteranopia (green-blind)
#003386
Tritanopia (blue-blind)
#004355
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #282a88;
/* rgb */ color: rgb(40, 42, 136);
/* oklch */ color: oklch(35.2% 0.152 274.4);
Tailwind
colors: {
  custom: {
    50: '#7064ac',
    500: '#282a88',
    950: '#000000',
  },
}
SCSS
$custom: #282a88;
$custom-light: #7064ac;
$custom-dark: #000000;
JSON
{
  "hex": "#282a88",
  "rgb": {
    "r": 40,
    "g": 42,
    "b": 136
  },
  "hsl": {
    "h": 238.75,
    "s": 54.545,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35163,
    "c": 0.15237,
    "h": 274.4
  },
  "luminance": 0.03885
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #282A88

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

Preview Lab → · Contrast checker → · Palette generator →

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