#282F89#282F89

#282F89 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.2% C 0.148 H 273.0°. Best body text is #FFFFFF at 11.30:1 contrast (WCAG AA passes).

Color values

HEX#282F89
RGBrgb(40, 47, 137)
HSLhsl(236, 55%, 35%)
HSVhsv(236, 71%, 54%)
CMYKcmyk(70.8%, 65.7%, 0%, 46.3%)
CIE-LABlab(24.61, 28.44, -51.06)
CIE-LCHlch(24.61, 58.44, 299.12°)
OKLaboklab(36.16% 0.0077 -0.1474)
OKLCHoklch(36.16% 0.148 273)
XYZxyz(6.4054, 4.2897, 24.1525)
Luminance0.0429 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282F89 #898228
analogous
#286089 #282F89 #522889
triadic
#282F89 #89282F #2F8928
tetradic
#282F89 #892860 #898228 #288952
square
#282F89 #892860 #898228 #288952
split-complementary
#282F89 #895228 #608928
monochromatic
#0C0E2A #1A1F5A #282F89 #363FB8 #5C64CF

Accessibility & contrast

On white

11.30
#282F89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#282F89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282F89
11.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282F89#FFFFFF#000000##FFFFFF
##282F891.0011.301.8611.30
#FFFFFF11.301.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #282f89;
/* rgb */ color: rgb(40, 47, 137);
/* oklch */ color: oklch(36.2% 0.148 273.0);
Tailwind
colors: {
  custom: {
    50: '#7067ac',
    500: '#282f89',
    950: '#000000',
  },
}
SCSS
$custom: #282f89;
$custom-light: #7067ac;
$custom-dark: #000000;
JSON
{
  "hex": "#282f89",
  "rgb": {
    "r": 40,
    "g": 47,
    "b": 137
  },
  "hsl": {
    "h": 235.67,
    "s": 54.802,
    "l": 34.706
  },
  "oklch": {
    "l": 0.36155,
    "c": 0.14759,
    "h": 273
  },
  "luminance": 0.0429
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #282F89

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

Preview Lab → · Contrast checker → · Palette generator →

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