#284080#284080

#284080 is a dark, moderate blue. Relative luminance 0.057; OKLCH L 38.9% C 0.112 H 265.9°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#284080
RGBrgb(40, 64, 128)
HSLhsl(224, 52%, 33%)
HSVhsv(224, 69%, 50%)
CMYKcmyk(68.8%, 50%, 0%, 49.8%)
CIE-LABlab(28.58, 13.40, -39.00)
CIE-LCHlch(28.58, 41.23, 288.96°)
OKLaboklab(38.9% -0.008 -0.1117)
OKLCHoklch(38.9% 0.112 265.9)
XYZxyz(6.6034, 5.6758, 21.1654)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284080 #806828
analogous
#286C80 #284080 #3C2880
triadic
#284080 #802840 #408028
tetradic
#284080 #80286C #806828 #28803C
square
#284080 #80286C #806828 #28803C
split-complementary
#284080 #803C28 #6C8028
monochromatic
#0B1123 #192951 #284080 #3757AF #5877CB

Accessibility & contrast

On white

9.84
#284080 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#284080 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284080
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284080#FFFFFF#000000##FFFFFF
##2840801.009.842.149.84
#FFFFFF9.841.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4882
Deuteranopia (green-blind)
#09407F
Tritanopia (blue-blind)
#004F5A
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #284080;
/* rgb */ color: rgb(40, 64, 128);
/* oklch */ color: oklch(38.9% 0.112 265.9);
Tailwind
colors: {
  custom: {
    50: '#6d74a5',
    500: '#284080',
    950: '#000000',
  },
}
SCSS
$custom: #284080;
$custom-light: #6d74a5;
$custom-dark: #000000;
JSON
{
  "hex": "#284080",
  "rgb": {
    "r": 40,
    "g": 64,
    "b": 128
  },
  "hsl": {
    "h": 223.636,
    "s": 52.381,
    "l": 32.941
  },
  "oklch": {
    "l": 0.38904,
    "c": 0.112,
    "h": 265.9
  },
  "luminance": 0.05676
}

Semantic roles & 50–950 ramp

primary
#284080
secondary
#B09754
accent
#B54CDC
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #284080

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

Preview Lab → · Contrast checker → · Palette generator →

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