#284875#284875

#284875 is a dark, moderate blue. Relative luminance 0.064; OKLCH L 40.0% C 0.085 H 257.2°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#284875
RGBrgb(40, 72, 117)
HSLhsl(215, 49%, 31%)
HSVhsv(215, 66%, 46%)
CMYKcmyk(65.8%, 38.5%, 0%, 54.1%)
CIE-LABlab(30.33, 3.76, -29.32)
CIE-LCHlch(30.33, 29.56, 277.30°)
OKLaboklab(40.03% -0.019 -0.0832)
OKLCHoklch(40.03% 0.085 257.2)
XYZxyz(6.4022, 6.3696, 17.7182)
Luminance0.0637 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284875 #755528
analogous
#286E75 #284875 #2E2875
triadic
#284875 #752848 #487528
tetradic
#284875 #75286E #755528 #28752E
square
#284875 #75286E #755528 #28752E
split-complementary
#284875 #752E28 #6E7528
monochromatic
#09101A #182C47 #284875 #3864A3 #5382C4

Accessibility & contrast

On white

9.23
#284875 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#284875 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284875
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284875#FFFFFF#000000##FFFFFF
##2848751.009.232.279.23
#FFFFFF9.231.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#354B77
Deuteranopia (green-blind)
#2A4474
Tritanopia (blue-blind)
#005259
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #284875;
/* rgb */ color: rgb(40, 72, 117);
/* oklch */ color: oklch(40.0% 0.085 257.2);
Tailwind
colors: {
  custom: {
    50: '#6a7a9d',
    500: '#284875',
    950: '#000000',
  },
}
SCSS
$custom: #284875;
$custom-light: #6a7a9d;
$custom-dark: #000000;
JSON
{
  "hex": "#284875",
  "rgb": {
    "r": 40,
    "g": 72,
    "b": 117
  },
  "hsl": {
    "h": 215.065,
    "s": 49.045,
    "l": 30.784
  },
  "oklch": {
    "l": 0.40028,
    "c": 0.08532,
    "h": 257.2
  },
  "luminance": 0.0637
}

Semantic roles & 50–950 ramp

primary
#284875
secondary
#A78452
accent
#9F4FD9
background
#F6F7F9
surface
#EBEDF2
border
#C6C8CC
text
#07090E
muted
#7A7B7E

Preview Lab

Preview with #284875

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

Preview Lab → · Contrast checker → · Palette generator →

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