#282F8B#282F8B

#282F8B is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.3% C 0.150 H 272.9°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#282F8B
RGBrgb(40, 47, 139)
HSLhsl(236, 55%, 35%)
HSVhsv(236, 71%, 55%)
CMYKcmyk(71.2%, 66.2%, 0%, 45.5%)
CIE-LABlab(24.79, 29.18, -52.00)
CIE-LCHlch(24.79, 59.63, 299.30°)
OKLaboklab(36.34% 0.0076 -0.1502)
OKLCHoklch(36.34% 0.15 272.9)
XYZxyz(6.5502, 4.3476, 24.9151)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282F8B #8B8428
analogous
#28608B #282F8B #53288B
triadic
#282F8B #8B282F #2F8B28
tetradic
#282F8B #8B2860 #8B8428 #288B53
square
#282F8B #8B2860 #8B8428 #288B53
split-complementary
#282F8B #8B5328 #608B28
monochromatic
#0D0F2C #1A1F5B #282F8B #363FBB #5D65D0

Accessibility & contrast

On white

11.23
#282F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#282F8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282F8B
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282F8B#FFFFFF#000000##FFFFFF
##282F8B1.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8E
Deuteranopia (green-blind)
#003689
Tritanopia (blue-blind)
#004758
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #282f8b;
/* rgb */ color: rgb(40, 47, 139);
/* oklch */ color: oklch(36.3% 0.150 272.9);
Tailwind
colors: {
  custom: {
    50: '#7067ae',
    500: '#282f8b',
    950: '#000000',
  },
}
SCSS
$custom: #282f8b;
$custom-light: #7067ae;
$custom-dark: #000000;
JSON
{
  "hex": "#282f8b",
  "rgb": {
    "r": 40,
    "g": 47,
    "b": 139
  },
  "hsl": {
    "h": 235.758,
    "s": 55.307,
    "l": 35.098
  },
  "oklch": {
    "l": 0.36344,
    "c": 0.15036,
    "h": 272.9
  },
  "luminance": 0.04348
}

Semantic roles & 50–950 ramp

primary
#282F8B
secondary
#B6AF59
accent
#D449DF
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #282F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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