#282F96#282F96

#282F96 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.4% C 0.165 H 272.3°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#282F96
RGBrgb(40, 47, 150)
HSLhsl(236, 58%, 37%)
HSVhsv(236, 73%, 59%)
CMYKcmyk(73.3%, 68.7%, 0%, 41.2%)
CIE-LABlab(25.82, 33.20, -57.11)
CIE-LCHlch(25.82, 66.06, 300.17°)
OKLaboklab(37.41% 0.0066 -0.1651)
OKLCHoklch(37.41% 0.165 272.3)
XYZxyz(7.3948, 4.6854, 29.3629)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282F96 #968F28
analogous
#286696 #282F96 #582896
triadic
#282F96 #96282F #2F9628
tetradic
#282F96 #962866 #968F28 #289658
square
#282F96 #962866 #968F28 #289658
split-complementary
#282F96 #965828 #669628
monochromatic
#0E1135 #1B2066 #282F96 #353EC6 #636AD5

Accessibility & contrast

On white

10.84
#282F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#282F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282F96
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282F96#FFFFFF#000000##FFFFFF
##282F961.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004299
Deuteranopia (green-blind)
#003894
Tritanopia (blue-blind)
#004B5E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #282f96;
/* rgb */ color: rgb(40, 47, 150);
/* oklch */ color: oklch(37.4% 0.165 272.3);
Tailwind
colors: {
  custom: {
    50: '#7368b6',
    500: '#282f96',
    950: '#000000',
  },
}
SCSS
$custom: #282f96;
$custom-light: #7368b6;
$custom-dark: #000000;
JSON
{
  "hex": "#282f96",
  "rgb": {
    "r": 40,
    "g": 47,
    "b": 150
  },
  "hsl": {
    "h": 236.182,
    "s": 57.895,
    "l": 37.255
  },
  "oklch": {
    "l": 0.3741,
    "c": 0.16525,
    "h": 272.3
  },
  "luminance": 0.04686
}

Semantic roles & 50–950 ramp

primary
#282F96
secondary
#BBB55F
accent
#D747E1
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #282F96

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

Preview Lab → · Contrast checker → · Palette generator →

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