#282C8D#282C8D

#282C8D is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.0% C 0.157 H 273.5°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#282C8D
RGBrgb(40, 44, 141)
HSLhsl(238, 56%, 35%)
HSVhsv(238, 72%, 55%)
CMYKcmyk(71.6%, 68.8%, 0%, 44.7%)
CIE-LABlab(24.24, 31.87, -54.14)
CIE-LCHlch(24.24, 62.83, 300.48°)
OKLaboklab(36% 0.0096 -0.1564)
OKLCHoklch(36% 0.157 273.5)
XYZxyz(6.5819, 4.1749, 25.6531)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282C8D #8D8928
analogous
#285E8D #282C8D #56288D
triadic
#282C8D #8D282C #2C8D28
tetradic
#282C8D #8D285E #8D8928 #288D56
square
#282C8D #8D285E #8D8928 #288D56
split-complementary
#282C8D #8D5628 #5E8D28
monochromatic
#0D0E2E #1A1D5D #282C8D #363BBD #5E63D1

Accessibility & contrast

On white

11.44
#282C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #282C8D
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282C8D#FFFFFF#000000##FFFFFF
##282C8D1.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E90
Deuteranopia (green-blind)
#00358B
Tritanopia (blue-blind)
#004658
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #282c8d;
/* rgb */ color: rgb(40, 44, 141);
/* oklch */ color: oklch(36.0% 0.157 273.5);
Tailwind
colors: {
  custom: {
    50: '#7165af',
    500: '#282c8d',
    950: '#000000',
  },
}
SCSS
$custom: #282c8d;
$custom-light: #7165af;
$custom-dark: #000000;
JSON
{
  "hex": "#282c8d",
  "rgb": {
    "r": 40,
    "g": 44,
    "b": 141
  },
  "hsl": {
    "h": 237.624,
    "s": 55.801,
    "l": 35.49
  },
  "oklch": {
    "l": 0.36003,
    "c": 0.15674,
    "h": 273.5
  },
  "luminance": 0.04176
}

Semantic roles & 50–950 ramp

primary
#282C8D
secondary
#B7B35A
accent
#D949DF
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #282C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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