#282F9F#282F9F

#282F9F is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.3% C 0.177 H 271.8°. Best body text is #FFFFFF at 10.51:1 contrast (WCAG AA passes).

Color values

HEX#282F9F
RGBrgb(40, 47, 159)
HSLhsl(236, 60%, 39%)
HSVhsv(236, 75%, 62%)
CMYKcmyk(74.8%, 70.4%, 0%, 37.6%)
CIE-LABlab(26.70, 36.43, -61.17)
CIE-LCHlch(26.70, 71.20, 300.77°)
OKLaboklab(38.31% 0.0056 -0.177)
OKLCHoklch(38.31% 0.177 271.8)
XYZxyz(8.1475, 4.9865, 33.3273)
Luminance0.0499 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282F9F #9F9828
analogous
#286B9F #282F9F #5D289F
triadic
#282F9F #9F282F #2F9F28
tetradic
#282F9F #9F286B #9F9828 #289F5D
square
#282F9F #9F286B #9F9828 #289F5D
split-complementary
#282F9F #9F5D28 #6B9F28
monochromatic
#0F123D #1C216E #282F9F #3740CD #686FD9

Accessibility & contrast

On white

10.51
#282F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#282F9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282F9F
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282F9F#FFFFFF#000000##FFFFFF
##282F9F1.0010.512.0010.51
#FFFFFF10.511.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A2
Deuteranopia (green-blind)
#00399D
Tritanopia (blue-blind)
#004E63
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #282f9f;
/* rgb */ color: rgb(40, 47, 159);
/* oklch */ color: oklch(38.3% 0.177 271.8);
Tailwind
colors: {
  custom: {
    50: '#7568bc',
    500: '#282f9f',
    950: '#000000',
  },
}
SCSS
$custom: #282f9f;
$custom-light: #7568bc;
$custom-dark: #000000;
JSON
{
  "hex": "#282f9f",
  "rgb": {
    "r": 40,
    "g": 47,
    "b": 159
  },
  "hsl": {
    "h": 236.471,
    "s": 59.799,
    "l": 39.02
  },
  "oklch": {
    "l": 0.38311,
    "c": 0.17707,
    "h": 271.8
  },
  "luminance": 0.04987
}

Semantic roles & 50–950 ramp

primary
#282F9F
secondary
#BFBA64
accent
#DA45E3
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #282F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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