#282F79#282F79

#282F79 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.7% C 0.125 H 273.8°. Best body text is #FFFFFF at 11.84:1 contrast (WCAG AA passes).

Color values

HEX#282F79
RGBrgb(40, 47, 121)
HSLhsl(235, 50%, 32%)
HSVhsv(235, 67%, 47%)
CMYKcmyk(66.9%, 61.2%, 0%, 52.5%)
CIE-LABlab(23.22, 22.48, -43.26)
CIE-LCHlch(23.22, 48.75, 297.46°)
OKLaboklab(34.7% 0.0083 -0.1245)
OKLCHoklch(34.7% 0.125 273.8)
XYZxyz(5.3416, 3.8642, 18.5498)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282F79 #797228
analogous
#285879 #282F79 #4A2879
triadic
#282F79 #79282F #2F7928
tetradic
#282F79 #792858 #797228 #28794A
square
#282F79 #792858 #797228 #28794A
split-complementary
#282F79 #794A28 #587928
monochromatic
#0A0B1D #191D4B #282F79 #3741A7 #555FC7

Accessibility & contrast

On white

11.84
#282F79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#282F79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282F79
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282F79#FFFFFF#000000##FFFFFF
##282F791.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7B
Deuteranopia (green-blind)
#003478
Tritanopia (blue-blind)
#00414F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #282f79;
/* rgb */ color: rgb(40, 47, 121);
/* oklch */ color: oklch(34.7% 0.125 273.8);
Tailwind
colors: {
  custom: {
    50: '#6c67a0',
    500: '#282f79',
    950: '#000000',
  },
}
SCSS
$custom: #282f79;
$custom-light: #6c67a0;
$custom-dark: #000000;
JSON
{
  "hex": "#282f79",
  "rgb": {
    "r": 40,
    "g": 47,
    "b": 121
  },
  "hsl": {
    "h": 234.815,
    "s": 50.311,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34698,
    "c": 0.12477,
    "h": 273.8
  },
  "luminance": 0.03865
}

Semantic roles & 50–950 ramp

primary
#282F79
secondary
#ABA352
accent
#CE4EDA
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060F
muted
#7A7A7E

Preview Lab

Preview with #282F79

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

Preview Lab → · Contrast checker → · Palette generator →

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