#282B87#282B87

#282B87 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.2% C 0.150 H 274.2°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#282B87
RGBrgb(40, 43, 135)
HSLhsl(238, 54%, 34%)
HSVhsv(238, 70%, 53%)
CMYKcmyk(70.4%, 68.1%, 0%, 47.1%)
CIE-LABlab(23.43, 30.34, -51.73)
CIE-LCHlch(23.43, 59.98, 300.39°)
OKLaboklab(35.24% 0.0109 -0.1494)
OKLCHoklch(35.24% 0.15 274.2)
XYZxyz(6.1107, 3.9276, 23.3530)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282B87 #878428
analogous
#285B87 #282B87 #552887
triadic
#282B87 #87282B #2B8728
tetradic
#282B87 #87285B #878428 #288755
square
#282B87 #87285B #878428 #288755
split-complementary
#282B87 #875528 #5B8728
monochromatic
#0C0D29 #1A1C58 #282B87 #363AB6 #5B5FCE

Accessibility & contrast

On white

11.76
#282B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#282B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282B87
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282B87#FFFFFF#000000##FFFFFF
##282B871.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8A
Deuteranopia (green-blind)
#003385
Tritanopia (blue-blind)
#004355
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #282b87;
/* rgb */ color: rgb(40, 43, 135);
/* oklch */ color: oklch(35.2% 0.150 274.2);
Tailwind
colors: {
  custom: {
    50: '#7064ab',
    500: '#282b87',
    950: '#000000',
  },
}
SCSS
$custom: #282b87;
$custom-light: #7064ab;
$custom-dark: #000000;
JSON
{
  "hex": "#282b87",
  "rgb": {
    "r": 40,
    "g": 43,
    "b": 135
  },
  "hsl": {
    "h": 238.105,
    "s": 54.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.3524,
    "c": 0.1498,
    "h": 274.2
  },
  "luminance": 0.03928
}

Semantic roles & 50–950 ramp

primary
#282B87
secondary
#B4B157
accent
#D94ADE
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080510
muted
#7B7A7F

Preview Lab

Preview with #282B87

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

Preview Lab → · Contrast checker → · Palette generator →

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