#282F9D#282F9D

#282F9D is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.1% C 0.174 H 271.9°. Best body text is #FFFFFF at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#282F9D
RGBrgb(40, 47, 157)
HSLhsl(236, 59%, 39%)
HSVhsv(236, 75%, 62%)
CMYKcmyk(74.5%, 70.1%, 0%, 38.4%)
CIE-LABlab(26.50, 35.71, -60.28)
CIE-LCHlch(26.50, 70.06, 300.65°)
OKLaboklab(38.11% 0.0058 -0.1744)
OKLCHoklch(38.11% 0.174 271.9)
XYZxyz(7.9753, 4.9176, 32.4206)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282F9D #9D9628
analogous
#28699D #282F9D #5B289D
triadic
#282F9D #9D282F #2F9D28
tetradic
#282F9D #9D2869 #9D9628 #289D5B
square
#282F9D #9D2869 #9D9628 #289D5B
split-complementary
#282F9D #9D5B28 #699D28
monochromatic
#0F123B #1C206C #282F9D #363FCC #676ED8

Accessibility & contrast

On white

10.59
#282F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#282F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282F9D
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282F9D#FFFFFF#000000##FFFFFF
##282F9D1.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A0
Deuteranopia (green-blind)
#00399B
Tritanopia (blue-blind)
#004D62
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #282f9d;
/* rgb */ color: rgb(40, 47, 157);
/* oklch */ color: oklch(38.1% 0.174 271.9);
Tailwind
colors: {
  custom: {
    50: '#7568bb',
    500: '#282f9d',
    950: '#000000',
  },
}
SCSS
$custom: #282f9d;
$custom-light: #7568bb;
$custom-dark: #000000;
JSON
{
  "hex": "#282f9d",
  "rgb": {
    "r": 40,
    "g": 47,
    "b": 157
  },
  "hsl": {
    "h": 236.41,
    "s": 59.391,
    "l": 38.627
  },
  "oklch": {
    "l": 0.38109,
    "c": 0.17447,
    "h": 271.9
  },
  "luminance": 0.04918
}

Semantic roles & 50–950 ramp

primary
#282F9D
secondary
#BEB962
accent
#D945E3
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #282F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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