#282E72#282E72

#282E72 is a dark, moderate blue. Relative luminance 0.036; OKLCH L 33.9% C 0.116 H 274.6°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#282E72
RGBrgb(40, 46, 114)
HSLhsl(235, 48%, 30%)
HSVhsv(235, 65%, 45%)
CMYKcmyk(64.9%, 59.6%, 0%, 55.3%)
CIE-LABlab(22.37, 20.55, -40.16)
CIE-LCHlch(22.37, 45.11, 297.09°)
OKLaboklab(33.89% 0.0093 -0.1154)
OKLCHoklch(33.89% 0.116 274.6)
XYZxyz(4.8883, 3.6196, 16.3574)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282E72 #726C28
analogous
#285372 #282E72 #472872
triadic
#282E72 #72282E #2E7228
tetradic
#282E72 #722853 #726C28 #287247
square
#282E72 #722853 #726C28 #287247
split-complementary
#282E72 #724728 #537228
monochromatic
#080917 #181C45 #282E72 #38409F #525BC2

Accessibility & contrast

On white

12.18
#282E72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#282E72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282E72
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282E72#FFFFFF#000000##FFFFFF
##282E721.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003974
Deuteranopia (green-blind)
#003271
Tritanopia (blue-blind)
#003E4B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #282e72;
/* rgb */ color: rgb(40, 46, 114);
/* oklch */ color: oklch(33.9% 0.116 274.6);
Tailwind
colors: {
  custom: {
    50: '#6b669b',
    500: '#282e72',
    950: '#000000',
  },
}
SCSS
$custom: #282e72;
$custom-light: #6b669b;
$custom-dark: #000000;
JSON
{
  "hex": "#282e72",
  "rgb": {
    "r": 40,
    "g": 46,
    "b": 114
  },
  "hsl": {
    "h": 235.135,
    "s": 48.052,
    "l": 30.196
  },
  "oklch": {
    "l": 0.3389,
    "c": 0.11577,
    "h": 274.6
  },
  "luminance": 0.0362
}

Semantic roles & 50–950 ramp

primary
#282E72
secondary
#A49E52
accent
#CD50D8
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #282E72

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

Preview Lab → · Contrast checker → · Palette generator →

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