#282F78#282F78

#282F78 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.6% C 0.123 H 273.9°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#282F78
RGBrgb(40, 47, 120)
HSLhsl(235, 50%, 31%)
HSVhsv(235, 67%, 47%)
CMYKcmyk(66.7%, 60.8%, 0%, 52.9%)
CIE-LABlab(23.13, 22.10, -42.76)
CIE-LCHlch(23.13, 48.13, 297.34°)
OKLaboklab(34.61% 0.0083 -0.123)
OKLCHoklch(34.61% 0.123 273.9)
XYZxyz(5.2806, 3.8398, 18.2285)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282F78 #787128
analogous
#285778 #282F78 #492878
triadic
#282F78 #78282F #2F7828
tetradic
#282F78 #782857 #787128 #287849
square
#282F78 #782857 #787128 #287849
split-complementary
#282F78 #784928 #577828
monochromatic
#090B1C #191D4A #282F78 #3741A6 #545EC6

Accessibility & contrast

On white

11.88
#282F78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #282F78
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282F78#FFFFFF#000000##FFFFFF
##282F781.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7A
Deuteranopia (green-blind)
#003477
Tritanopia (blue-blind)
#00414E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #282f78;
/* rgb */ color: rgb(40, 47, 120);
/* oklch */ color: oklch(34.6% 0.123 273.9);
Tailwind
colors: {
  custom: {
    50: '#6c67a0',
    500: '#282f78',
    950: '#000000',
  },
}
SCSS
$custom: #282f78;
$custom-light: #6c67a0;
$custom-dark: #000000;
JSON
{
  "hex": "#282f78",
  "rgb": {
    "r": 40,
    "g": 47,
    "b": 120
  },
  "hsl": {
    "h": 234.75,
    "s": 50,
    "l": 31.373
  },
  "oklch": {
    "l": 0.34611,
    "c": 0.1233,
    "h": 273.9
  },
  "luminance": 0.0384
}

Semantic roles & 50–950 ramp

primary
#282F78
secondary
#AAA252
accent
#CD4EDA
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060F
muted
#7A7A7E

Preview Lab

Preview with #282F78

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

Preview Lab → · Contrast checker → · Palette generator →

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