#282F88#282F88

#282F88 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.1% C 0.146 H 273.1°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#282F88
RGBrgb(40, 47, 136)
HSLhsl(236, 55%, 35%)
HSVhsv(236, 71%, 53%)
CMYKcmyk(70.6%, 65.4%, 0%, 46.7%)
CIE-LABlab(24.52, 28.07, -50.58)
CIE-LCHlch(24.52, 57.85, 299.03°)
OKLaboklab(36.06% 0.0078 -0.146)
OKLCHoklch(36.06% 0.146 273.1)
XYZxyz(6.3340, 4.2611, 23.7765)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282F88 #888128
analogous
#285F88 #282F88 #512888
triadic
#282F88 #88282F #2F8828
tetradic
#282F88 #88285F #888128 #288851
square
#282F88 #88285F #888128 #288851
split-complementary
#282F88 #885128 #5F8828
monochromatic
#0C0E29 #1A1F59 #282F88 #363FB7 #5B64CF

Accessibility & contrast

On white

11.34
#282F88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #282F88
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282F88#FFFFFF#000000##FFFFFF
##282F881.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8B
Deuteranopia (green-blind)
#003686
Tritanopia (blue-blind)
#004657
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #282f88;
/* rgb */ color: rgb(40, 47, 136);
/* oklch */ color: oklch(36.1% 0.146 273.1);
Tailwind
colors: {
  custom: {
    50: '#7067ac',
    500: '#282f88',
    950: '#000000',
  },
}
SCSS
$custom: #282f88;
$custom-light: #7067ac;
$custom-dark: #000000;
JSON
{
  "hex": "#282f88",
  "rgb": {
    "r": 40,
    "g": 47,
    "b": 136
  },
  "hsl": {
    "h": 235.625,
    "s": 54.545,
    "l": 34.51
  },
  "oklch": {
    "l": 0.36061,
    "c": 0.14621,
    "h": 273.1
  },
  "luminance": 0.04262
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #282F88

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

Preview Lab → · Contrast checker → · Palette generator →

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