#282A7A#282A7A

#282A7A is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.8% C 0.133 H 275.6°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#282A7A
RGBrgb(40, 42, 122)
HSLhsl(239, 51%, 32%)
HSVhsv(239, 67%, 48%)
CMYKcmyk(67.2%, 65.6%, 0%, 52.2%)
CIE-LABlab(21.99, 26.26, -45.90)
CIE-LCHlch(21.99, 52.88, 299.77°)
OKLaboklab(33.82% 0.0129 -0.1323)
OKLCHoklch(33.82% 0.133 275.6)
XYZxyz(5.2147, 3.5117, 18.8116)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282A7A #7A7828
analogous
#28537A #282A7A #4F287A
triadic
#282A7A #7A282A #2A7A28
tetradic
#282A7A #7A2853 #7A7828 #287A4F
square
#282A7A #7A2853 #7A7828 #287A4F
split-complementary
#282A7A #7A4F28 #537A28
monochromatic
#0A0A1E #191A4C #282A7A #373AA8 #5558C7

Accessibility & contrast

On white

12.34
#282A7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#282A7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282A7A
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282A7A#FFFFFF#000000##FFFFFF
##282A7A1.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387D
Deuteranopia (green-blind)
#003178
Tritanopia (blue-blind)
#003E4E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #282a7a;
/* rgb */ color: rgb(40, 42, 122);
/* oklch */ color: oklch(33.8% 0.133 275.6);
Tailwind
colors: {
  custom: {
    50: '#6d63a1',
    500: '#282a7a',
    950: '#000000',
  },
}
SCSS
$custom: #282a7a;
$custom-light: #6d63a1;
$custom-dark: #000000;
JSON
{
  "hex": "#282a7a",
  "rgb": {
    "r": 40,
    "g": 42,
    "b": 122
  },
  "hsl": {
    "h": 238.537,
    "s": 50.617,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33818,
    "c": 0.13292,
    "h": 275.6
  },
  "luminance": 0.03512
}

Semantic roles & 50–950 ramp

primary
#282A7A
secondary
#ACAA52
accent
#D74EDA
background
#F6F5FA
surface
#ECEAF3
border
#C7C6CD
text
#08050F
muted
#7A797F

Preview Lab

Preview with #282A7A

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

Preview Lab → · Contrast checker → · Palette generator →

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