#282F87#282F87

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

Color values

HEX#282F87
RGBrgb(40, 47, 135)
HSLhsl(236, 54%, 34%)
HSVhsv(236, 70%, 53%)
CMYKcmyk(70.4%, 65.2%, 0%, 47.1%)
CIE-LABlab(24.43, 27.70, -50.10)
CIE-LCHlch(24.43, 57.25, 298.94°)
OKLaboklab(35.97% 0.0079 -0.1446)
OKLCHoklch(35.97% 0.145 273.1)
XYZxyz(6.2633, 4.2328, 23.4039)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282F87 #878028
analogous
#285F87 #282F87 #512887
triadic
#282F87 #87282F #2F8728
tetradic
#282F87 #87285F #878028 #288751
square
#282F87 #87285F #878028 #288751
split-complementary
#282F87 #875128 #5F8728
monochromatic
#0C0E29 #1A1F58 #282F87 #363FB6 #5B63CE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##282F87#FFFFFF#000000##FFFFFF
##282F871.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)
#003E8A
Deuteranopia (green-blind)
#003685
Tritanopia (blue-blind)
#004656
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #282f87;
/* rgb */ color: rgb(40, 47, 135);
/* oklch */ color: oklch(36.0% 0.145 273.1);
Tailwind
colors: {
  custom: {
    50: '#6f67ab',
    500: '#282f87',
    950: '#000000',
  },
}
SCSS
$custom: #282f87;
$custom-light: #6f67ab;
$custom-dark: #000000;
JSON
{
  "hex": "#282f87",
  "rgb": {
    "r": 40,
    "g": 47,
    "b": 135
  },
  "hsl": {
    "h": 235.579,
    "s": 54.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35967,
    "c": 0.14481,
    "h": 273.1
  },
  "luminance": 0.04233
}

Semantic roles & 50–950 ramp

primary
#282F87
secondary
#B4AD57
accent
#D34ADE
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #282F87

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

Preview Lab → · Contrast checker → · Palette generator →

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