#282C7A#282C7A

#282C7A is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.2% C 0.130 H 274.9°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#282C7A
RGBrgb(40, 44, 122)
HSLhsl(237, 51%, 32%)
HSVhsv(237, 67%, 48%)
CMYKcmyk(67.2%, 63.9%, 0%, 52.2%)
CIE-LABlab(22.50, 24.90, -45.05)
CIE-LCHlch(22.50, 51.48, 298.93°)
OKLaboklab(34.2% 0.0111 -0.1298)
OKLCHoklch(34.2% 0.13 274.9)
XYZxyz(5.2874, 3.6572, 18.8358)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282C7A #7A7628
analogous
#28557A #282C7A #4D287A
triadic
#282C7A #7A282C #2C7A28
tetradic
#282C7A #7A2855 #7A7628 #287A4D
square
#282C7A #7A2855 #7A7628 #287A4D
split-complementary
#282C7A #7A4D28 #557A28
monochromatic
#0A0B1E #191B4C #282C7A #373DA8 #555BC7

Accessibility & contrast

On white

12.13
#282C7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #282C7A
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282C7A#FFFFFF#000000##FFFFFF
##282C7A1.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397D
Deuteranopia (green-blind)
#003278
Tritanopia (blue-blind)
#00404E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #282c7a;
/* rgb */ color: rgb(40, 44, 122);
/* oklch */ color: oklch(34.2% 0.130 274.9);
Tailwind
colors: {
  custom: {
    50: '#6d65a1',
    500: '#282c7a',
    950: '#000000',
  },
}
SCSS
$custom: #282c7a;
$custom-light: #6d65a1;
$custom-dark: #000000;
JSON
{
  "hex": "#282c7a",
  "rgb": {
    "r": 40,
    "g": 44,
    "b": 122
  },
  "hsl": {
    "h": 237.073,
    "s": 50.617,
    "l": 31.765
  },
  "oklch": {
    "l": 0.34198,
    "c": 0.13027,
    "h": 274.9
  },
  "luminance": 0.03658
}

Semantic roles & 50–950 ramp

primary
#282C7A
secondary
#ACA752
accent
#D34EDA
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#08050F
muted
#7A7A7F

Preview Lab

Preview with #282C7A

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

Preview Lab → · Contrast checker → · Palette generator →

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