#282D62#282D62

#282D62 is a dark, moderate blue. Relative luminance 0.032; OKLCH L 32.4% C 0.093 H 275.9°. Best body text is #FFFFFF at 12.79:1 contrast (WCAG AA passes).

Color values

HEX#282D62
RGBrgb(40, 45, 98)
HSLhsl(235, 42%, 27%)
HSVhsv(235, 59%, 38%)
CMYKcmyk(59.2%, 54.1%, 0%, 61.6%)
CIE-LABlab(20.86, 15.27, -32.23)
CIE-LCHlch(20.86, 35.66, 295.36°)
OKLaboklab(32.37% 0.0095 -0.0921)
OKLCHoklch(32.37% 0.093 275.9)
XYZxyz(4.0174, 3.2095, 11.9607)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282D62 #625D28
analogous
#284A62 #282D62 #402862
triadic
#282D62 #62282D #2D6228
tetradic
#282D62 #62284A #625D28 #286240
square
#282D62 #62284A #625D28 #286240
split-complementary
#282D62 #624028 #4A6228
monochromatic
#090A16 #161937 #282D62 #3A418D #4E57B7

Accessibility & contrast

On white

12.79
#282D62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#282D62 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282D62
12.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282D62#FFFFFF#000000##FFFFFF
##282D621.0012.791.6412.79
#FFFFFF12.791.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#123564
Deuteranopia (green-blind)
#083061
Tritanopia (blue-blind)
#093943
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #282d62;
/* rgb */ color: rgb(40, 45, 98);
/* oklch */ color: oklch(32.4% 0.093 275.9);
Tailwind
colors: {
  custom: {
    50: '#68658f',
    500: '#282d62',
    950: '#000000',
  },
}
SCSS
$custom: #282d62;
$custom-light: #68658f;
$custom-dark: #000000;
JSON
{
  "hex": "#282d62",
  "rgb": {
    "r": 40,
    "g": 45,
    "b": 98
  },
  "hsl": {
    "h": 234.828,
    "s": 42.029,
    "l": 27.059
  },
  "oklch": {
    "l": 0.32371,
    "c": 0.09256,
    "h": 275.9
  },
  "luminance": 0.0321
}

Semantic roles & 50–950 ramp

primary
#282D62
secondary
#958F51
accent
#C756D2
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#06050C
muted
#7A7A7D

Preview Lab

Preview with #282D62

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

Preview Lab → · Contrast checker → · Palette generator →

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