#282C8E#282C8E

#282C8E is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.1% C 0.158 H 273.4°. Best body text is #FFFFFF at 11.41:1 contrast (WCAG AA passes).

Color values

HEX#282C8E
RGBrgb(40, 44, 142)
HSLhsl(238, 56%, 36%)
HSVhsv(238, 72%, 56%)
CMYKcmyk(71.8%, 69%, 0%, 44.3%)
CIE-LABlab(24.34, 32.23, -54.61)
CIE-LCHlch(24.34, 63.41, 300.55°)
OKLaboklab(36.1% 0.0095 -0.1578)
OKLCHoklch(36.1% 0.158 273.4)
XYZxyz(6.6566, 4.2048, 26.0467)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282C8E #8E8A28
analogous
#285F8E #282C8E #57288E
triadic
#282C8E #8E282C #2C8E28
tetradic
#282C8E #8E285F #8E8A28 #288E57
square
#282C8E #8E285F #8E8A28 #288E57
split-complementary
#282C8E #8E5728 #5F8E28
monochromatic
#0D0E2F #1B1D5E #282C8E #353BBE #5F63D2

Accessibility & contrast

On white

11.41
#282C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#282C8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282C8E
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282C8E#FFFFFF#000000##FFFFFF
##282C8E1.0011.411.8411.41
#FFFFFF11.411.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F91
Deuteranopia (green-blind)
#00358C
Tritanopia (blue-blind)
#004659
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #282c8e;
/* rgb */ color: rgb(40, 44, 142);
/* oklch */ color: oklch(36.1% 0.158 273.4);
Tailwind
colors: {
  custom: {
    50: '#7165b0',
    500: '#282c8e',
    950: '#000000',
  },
}
SCSS
$custom: #282c8e;
$custom-light: #7165b0;
$custom-dark: #000000;
JSON
{
  "hex": "#282c8e",
  "rgb": {
    "r": 40,
    "g": 44,
    "b": 142
  },
  "hsl": {
    "h": 237.647,
    "s": 56.044,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36102,
    "c": 0.15808,
    "h": 273.4
  },
  "luminance": 0.04205
}

Semantic roles & 50–950 ramp

primary
#282C8E
secondary
#B7B45B
accent
#D948DF
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090611
muted
#7B7A80

Preview Lab

Preview with #282C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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