#282C8F#282C8F

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

Color values

HEX#282C8F
RGBrgb(40, 44, 143)
HSLhsl(238, 56%, 36%)
HSVhsv(238, 72%, 56%)
CMYKcmyk(72%, 69.2%, 0%, 43.9%)
CIE-LABlab(24.43, 32.59, -55.07)
CIE-LCHlch(24.43, 63.99, 300.62°)
OKLaboklab(36.2% 0.0094 -0.1592)
OKLCHoklch(36.2% 0.159 273.4)
XYZxyz(6.7320, 4.2350, 26.4439)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282C8F #8F8B28
analogous
#285F8F #282C8F #57288F
triadic
#282C8F #8F282C #2C8F28
tetradic
#282C8F #8F285F #8F8B28 #288F57
square
#282C8F #8F285F #8F8B28 #288F57
split-complementary
#282C8F #8F5728 #5F8F28
monochromatic
#0D0F2F #1B1D5F #282C8F #353BBF #5F64D2

Accessibility & contrast

On white

11.37
#282C8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#282C8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282C8F
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282C8F#FFFFFF#000000##FFFFFF
##282C8F1.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F92
Deuteranopia (green-blind)
#00358D
Tritanopia (blue-blind)
#004759
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #282c8f;
/* rgb */ color: rgb(40, 44, 143);
/* oklch */ color: oklch(36.2% 0.159 273.4);
Tailwind
colors: {
  custom: {
    50: '#7265b1',
    500: '#282c8f',
    950: '#000000',
  },
}
SCSS
$custom: #282c8f;
$custom-light: #7265b1;
$custom-dark: #000000;
JSON
{
  "hex": "#282c8f",
  "rgb": {
    "r": 40,
    "g": 44,
    "b": 143
  },
  "hsl": {
    "h": 237.67,
    "s": 56.284,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36201,
    "c": 0.15943,
    "h": 273.4
  },
  "luminance": 0.04236
}

Semantic roles & 50–950 ramp

primary
#282C8F
secondary
#B8B45B
accent
#DA48E0
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #282C8F

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

Preview Lab → · Contrast checker → · Palette generator →

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