#282162#282162

#282162 is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.9% C 0.110 H 282.3°. Best body text is #FFFFFF at 14.15:1 contrast (WCAG AA passes).

Color values

HEX#282162
RGBrgb(40, 33, 98)
HSLhsl(246, 50%, 26%)
HSVhsv(246, 66%, 38%)
CMYKcmyk(59.2%, 66.3%, 0%, 61.6%)
CIE-LABlab(17.55, 23.64, -37.58)
CIE-LCHlch(17.55, 44.40, 302.17°)
OKLaboklab(29.91% 0.0235 -0.1079)
OKLCHoklch(29.91% 0.11 282.3)
XYZxyz(3.6229, 2.4204, 11.8292)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282162 #5B6221
analogous
#213A62 #282162 #482162
triadic
#282162 #622821 #216228
tetradic
#282162 #62213A #5B6221 #216248
square
#282162 #62213A #5B6221 #216248
split-complementary
#282162 #624821 #3A6221
monochromatic
#090817 #151234 #282162 #3B3090 #4D40BE

Accessibility & contrast

On white

14.15
#282162 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#282162 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282162
14.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282162#FFFFFF#000000##FFFFFF
##2821621.0014.151.4814.15
#FFFFFF14.151.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D64
Deuteranopia (green-blind)
#002961
Tritanopia (blue-blind)
#0C313E
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #282162;
/* rgb */ color: rgb(40, 33, 98);
/* oklch */ color: oklch(29.9% 0.110 282.3);
Tailwind
colors: {
  custom: {
    50: '#685c8f',
    500: '#282162',
    950: '#000000',
  },
}
SCSS
$custom: #282162;
$custom-light: #685c8f;
$custom-dark: #000000;
JSON
{
  "hex": "#282162",
  "rgb": {
    "r": 40,
    "g": 33,
    "b": 98
  },
  "hsl": {
    "h": 246.462,
    "s": 49.618,
    "l": 25.686
  },
  "oklch": {
    "l": 0.29913,
    "c": 0.11044,
    "h": 282.3
  },
  "luminance": 0.02421
}

Semantic roles & 50–950 ramp

primary
#282162
secondary
#8E9649
accent
#D94FCA
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #282162

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

Preview Lab → · Contrast checker → · Palette generator →

#282162 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva