#284879#284879

#284879 is a dark, moderate blue. Relative luminance 0.065; OKLCH L 40.3% C 0.091 H 258.7°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#284879
RGBrgb(40, 72, 121)
HSLhsl(216, 50%, 32%)
HSVhsv(216, 67%, 47%)
CMYKcmyk(66.9%, 40.5%, 0%, 52.5%)
CIE-LABlab(30.56, 5.27, -31.46)
CIE-LCHlch(30.56, 31.89, 279.51°)
OKLaboklab(40.28% -0.0179 -0.0895)
OKLCHoklch(40.28% 0.091 258.7)
XYZxyz(6.6424, 6.4657, 18.9834)
Luminance0.0647 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284879 #795928
analogous
#287179 #284879 #302879
triadic
#284879 #792848 #487928
tetradic
#284879 #792871 #795928 #287930
square
#284879 #792871 #795928 #287930
split-complementary
#284879 #793028 #717928
monochromatic
#0A111D #192D4B #284879 #3763A7 #5582C7

Accessibility & contrast

On white

9.16
#284879 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#284879 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284879
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284879#FFFFFF#000000##FFFFFF
##2848791.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#324C7B
Deuteranopia (green-blind)
#274478
Tritanopia (blue-blind)
#00535A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #284879;
/* rgb */ color: rgb(40, 72, 121);
/* oklch */ color: oklch(40.3% 0.091 258.7);
Tailwind
colors: {
  custom: {
    50: '#6b7aa0',
    500: '#284879',
    950: '#000000',
  },
}
SCSS
$custom: #284879;
$custom-light: #6b7aa0;
$custom-dark: #000000;
JSON
{
  "hex": "#284879",
  "rgb": {
    "r": 40,
    "g": 72,
    "b": 121
  },
  "hsl": {
    "h": 216.296,
    "s": 50.311,
    "l": 31.569
  },
  "oklch": {
    "l": 0.40284,
    "c": 0.09124,
    "h": 258.7
  },
  "luminance": 0.06466
}

Semantic roles & 50–950 ramp

primary
#284879
secondary
#AB8852
accent
#A34EDA
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07090E
muted
#7A7B7E

Preview Lab

Preview with #284879

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

Preview Lab → · Contrast checker → · Palette generator →

#284879 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva