#282A72#282A72

#282A72 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.1% C 0.121 H 276.3°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#282A72
RGBrgb(40, 42, 114)
HSLhsl(238, 48%, 30%)
HSVhsv(238, 65%, 45%)
CMYKcmyk(64.9%, 63.2%, 0%, 55.3%)
CIE-LABlab(21.29, 23.31, -41.92)
CIE-LCHlch(21.29, 47.97, 299.07°)
OKLaboklab(33.09% 0.0133 -0.1206)
OKLCHoklch(33.09% 0.121 276.3)
XYZxyz(4.7393, 3.3216, 16.3077)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282A72 #727028
analogous
#284F72 #282A72 #4B2872
triadic
#282A72 #72282A #2A7228
tetradic
#282A72 #72284F #727028 #28724B
square
#282A72 #72284F #727028 #28724B
split-complementary
#282A72 #724B28 #4F7228
monochromatic
#080917 #181945 #282A72 #383B9F #5255C2

Accessibility & contrast

On white

12.62
#282A72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#282A72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282A72
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282A72#FFFFFF#000000##FFFFFF
##282A721.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003674
Deuteranopia (green-blind)
#003071
Tritanopia (blue-blind)
#003C49
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #282a72;
/* rgb */ color: rgb(40, 42, 114);
/* oklch */ color: oklch(33.1% 0.121 276.3);
Tailwind
colors: {
  custom: {
    50: '#6b639b',
    500: '#282a72',
    950: '#000000',
  },
}
SCSS
$custom: #282a72;
$custom-light: #6b639b;
$custom-dark: #000000;
JSON
{
  "hex": "#282a72",
  "rgb": {
    "r": 40,
    "g": 42,
    "b": 114
  },
  "hsl": {
    "h": 238.378,
    "s": 48.052,
    "l": 30.196
  },
  "oklch": {
    "l": 0.33087,
    "c": 0.12135,
    "h": 276.3
  },
  "luminance": 0.03322
}

Semantic roles & 50–950 ramp

primary
#282A72
secondary
#A4A252
accent
#D450D8
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #282A72

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

Preview Lab → · Contrast checker → · Palette generator →

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