#282D71#282D71

#282D71 is a dark, moderate blue. Relative luminance 0.035; OKLCH L 33.6% C 0.116 H 275.1°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#282D71
RGBrgb(40, 45, 113)
HSLhsl(236, 48%, 30%)
HSVhsv(236, 65%, 44%)
CMYKcmyk(64.6%, 60.2%, 0%, 55.7%)
CIE-LABlab(22.02, 20.87, -40.10)
CIE-LCHlch(22.02, 45.20, 297.49°)
OKLaboklab(33.6% 0.0103 -0.1152)
OKLCHoklch(33.6% 0.116 275.1)
XYZxyz(4.7931, 3.5198, 16.0464)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282D71 #716C28
analogous
#285271 #282D71 #472871
triadic
#282D71 #71282D #2D7128
tetradic
#282D71 #712852 #716C28 #287147
square
#282D71 #712852 #716C28 #287147
split-complementary
#282D71 #714728 #527128
monochromatic
#080917 #181B44 #282D71 #383F9E #5259C2

Accessibility & contrast

On white

12.32
#282D71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #282D71
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282D71#FFFFFF#000000##FFFFFF
##282D711.0012.321.7012.32
#FFFFFF12.321.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003873
Deuteranopia (green-blind)
#003270
Tritanopia (blue-blind)
#003D4A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #282d71;
/* rgb */ color: rgb(40, 45, 113);
/* oklch */ color: oklch(33.6% 0.116 275.1);
Tailwind
colors: {
  custom: {
    50: '#6b659a',
    500: '#282d71',
    950: '#000000',
  },
}
SCSS
$custom: #282d71;
$custom-light: #6b659a;
$custom-dark: #000000;
JSON
{
  "hex": "#282d71",
  "rgb": {
    "r": 40,
    "g": 45,
    "b": 113
  },
  "hsl": {
    "h": 235.89,
    "s": 47.712,
    "l": 30
  },
  "oklch": {
    "l": 0.33599,
    "c": 0.11569,
    "h": 275.1
  },
  "luminance": 0.0352
}

Semantic roles & 50–950 ramp

primary
#282D71
secondary
#A39E52
accent
#CE50D7
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07050E
muted
#7A7A7E

Preview Lab

Preview with #282D71

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

Preview Lab → · Contrast checker → · Palette generator →

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