#282C7C#282C7C

#282C7C is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.4% C 0.133 H 274.7°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#282C7C
RGBrgb(40, 44, 124)
HSLhsl(237, 51%, 32%)
HSVhsv(237, 68%, 49%)
CMYKcmyk(67.7%, 64.5%, 0%, 51.4%)
CIE-LABlab(22.68, 25.65, -46.04)
CIE-LCHlch(22.68, 52.70, 299.12°)
OKLaboklab(34.38% 0.011 -0.1327)
OKLCHoklch(34.38% 0.133 274.7)
XYZxyz(5.4126, 3.7072, 19.4952)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282C7C #7C7828
analogous
#28567C #282C7C #4E287C
triadic
#282C7C #7C282C #2C7C28
tetradic
#282C7C #7C2856 #7C7828 #287C4E
square
#282C7C #7C2856 #7C7828 #287C4E
split-complementary
#282C7C #7C4E28 #567C28
monochromatic
#0A0B1F #191C4E #282C7C #373CAA #565BC8

Accessibility & contrast

On white

12.06
#282C7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#282C7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282C7C
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282C7C#FFFFFF#000000##FFFFFF
##282C7C1.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7F
Deuteranopia (green-blind)
#00327A
Tritanopia (blue-blind)
#00404F
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #282c7c;
/* rgb */ color: rgb(40, 44, 124);
/* oklch */ color: oklch(34.4% 0.133 274.7);
Tailwind
colors: {
  custom: {
    50: '#6d65a3',
    500: '#282c7c',
    950: '#000000',
  },
}
SCSS
$custom: #282c7c;
$custom-light: #6d65a3;
$custom-dark: #000000;
JSON
{
  "hex": "#282c7c",
  "rgb": {
    "r": 40,
    "g": 44,
    "b": 124
  },
  "hsl": {
    "h": 237.143,
    "s": 51.22,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34381,
    "c": 0.13315,
    "h": 274.7
  },
  "luminance": 0.03708
}

Semantic roles & 50–950 ramp

primary
#282C7C
secondary
#ADA952
accent
#D44DDB
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#08050F
muted
#7A7A7F

Preview Lab

Preview with #282C7C

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

Preview Lab → · Contrast checker → · Palette generator →

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