#282C79#282C79

#282C79 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.1% C 0.129 H 275.0°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#282C79
RGBrgb(40, 44, 121)
HSLhsl(237, 50%, 32%)
HSVhsv(237, 67%, 47%)
CMYKcmyk(66.9%, 63.6%, 0%, 52.5%)
CIE-LABlab(22.42, 24.53, -44.56)
CIE-LCHlch(22.42, 50.87, 298.84°)
OKLaboklab(34.11% 0.0111 -0.1283)
OKLCHoklch(34.11% 0.129 275)
XYZxyz(5.2258, 3.6325, 18.5112)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282C79 #797528
analogous
#285579 #282C79 #4D2879
triadic
#282C79 #79282C #2C7928
tetradic
#282C79 #792855 #797528 #28794D
square
#282C79 #792855 #797528 #28794D
split-complementary
#282C79 #794D28 #557928
monochromatic
#0A0B1D #191B4B #282C79 #373DA7 #555AC7

Accessibility & contrast

On white

12.16
#282C79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#282C79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282C79
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282C79#FFFFFF#000000##FFFFFF
##282C791.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397C
Deuteranopia (green-blind)
#003277
Tritanopia (blue-blind)
#003F4E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #282c79;
/* rgb */ color: rgb(40, 44, 121);
/* oklch */ color: oklch(34.1% 0.129 275.0);
Tailwind
colors: {
  custom: {
    50: '#6c65a0',
    500: '#282c79',
    950: '#000000',
  },
}
SCSS
$custom: #282c79;
$custom-light: #6c65a0;
$custom-dark: #000000;
JSON
{
  "hex": "#282c79",
  "rgb": {
    "r": 40,
    "g": 44,
    "b": 121
  },
  "hsl": {
    "h": 237.037,
    "s": 50.311,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34107,
    "c": 0.12883,
    "h": 275
  },
  "luminance": 0.03633
}

Semantic roles & 50–950 ramp

primary
#282C79
secondary
#ABA752
accent
#D34EDA
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08050F
muted
#7A7A7E

Preview Lab

Preview with #282C79

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

Preview Lab → · Contrast checker → · Palette generator →

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