#285799#285799

#285799 is a mid, moderate blue. Relative luminance 0.096; OKLCH L 45.9% C 0.119 H 257.4°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#285799
RGBrgb(40, 87, 153)
HSLhsl(215, 59%, 38%)
HSVhsv(215, 74%, 60%)
CMYKcmyk(73.9%, 43.1%, 0%, 40%)
CIE-LABlab(37.05, 7.61, -40.73)
CIE-LCHlch(37.05, 41.44, 280.58°)
OKLaboklab(45.95% -0.0259 -0.1164)
OKLCHoklch(45.95% 0.119 257.4)
XYZxyz(10.0309, 9.5663, 31.4486)
Luminance0.0957 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#285799 #996A28
analogous
#288F99 #285799 #312899
triadic
#285799 #992857 #579928
tetradic
#285799 #99288F #996A28 #289931
square
#285799 #99288F #996A28 #289931
split-complementary
#285799 #993128 #8F9928
monochromatic
#0F2038 #1B3B68 #285799 #3573CA #6594D7

Accessibility & contrast

On white

7.21
#285799 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#285799 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #285799
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##285799#FFFFFF#000000##FFFFFF
##2857991.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#375D9C
Deuteranopia (green-blind)
#235298
Tritanopia (blue-blind)
#006670
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #285799;
/* rgb */ color: rgb(40, 87, 153);
/* oklch */ color: oklch(45.9% 0.119 257.4);
Tailwind
colors: {
  custom: {
    50: '#7185b7',
    500: '#285799',
    950: '#000000',
  },
}
SCSS
$custom: #285799;
$custom-light: #7185b7;
$custom-dark: #000000;
JSON
{
  "hex": "#285799",
  "rgb": {
    "r": 40,
    "g": 87,
    "b": 153
  },
  "hsl": {
    "h": 215.044,
    "s": 58.549,
    "l": 37.843
  },
  "oklch": {
    "l": 0.45946,
    "c": 0.1193,
    "h": 257.4
  },
  "luminance": 0.09567
}

Semantic roles & 50–950 ramp

primary
#285799
secondary
#BD9660
accent
#A146E2
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #285799

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

Preview Lab → · Contrast checker → · Palette generator →

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