#282E7C#282E7C

#282E7C is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.8% C 0.130 H 274.0°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#282E7C
RGBrgb(40, 46, 124)
HSLhsl(236, 51%, 32%)
HSVhsv(236, 68%, 49%)
CMYKcmyk(67.7%, 62.9%, 0%, 51.4%)
CIE-LABlab(23.20, 24.29, -45.18)
CIE-LCHlch(23.20, 51.30, 298.26°)
OKLaboklab(34.77% 0.0092 -0.1302)
OKLCHoklch(34.77% 0.13 274)
XYZxyz(5.4890, 3.8599, 19.5206)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282E7C #7C7628
analogous
#28587C #282E7C #4C287C
triadic
#282E7C #7C282E #2E7C28
tetradic
#282E7C #7C2858 #7C7628 #287C4C
square
#282E7C #7C2858 #7C7628 #287C4C
split-complementary
#282E7C #7C4C28 #587C28
monochromatic
#0A0C1F #191D4E #282E7C #373FAA #565EC8

Accessibility & contrast

On white

11.85
#282E7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#282E7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282E7C
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282E7C#FFFFFF#000000##FFFFFF
##282E7C1.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7F
Deuteranopia (green-blind)
#00347A
Tritanopia (blue-blind)
#004150
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #282e7c;
/* rgb */ color: rgb(40, 46, 124);
/* oklch */ color: oklch(34.8% 0.130 274.0);
Tailwind
colors: {
  custom: {
    50: '#6d66a3',
    500: '#282e7c',
    950: '#000000',
  },
}
SCSS
$custom: #282e7c;
$custom-light: #6d66a3;
$custom-dark: #000000;
JSON
{
  "hex": "#282e7c",
  "rgb": {
    "r": 40,
    "g": 46,
    "b": 124
  },
  "hsl": {
    "h": 235.714,
    "s": 51.22,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34766,
    "c": 0.13049,
    "h": 274
  },
  "luminance": 0.0386
}

Semantic roles & 50–950 ramp

primary
#282E7C
secondary
#ADA752
accent
#D14DDB
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#08060F
muted
#7A7A7F

Preview Lab

Preview with #282E7C

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

Preview Lab → · Contrast checker → · Palette generator →

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