#285298#285298

#285298 is a dark, vivid blue. Relative luminance 0.088; OKLCH L 44.7% C 0.124 H 260.0°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#285298
RGBrgb(40, 82, 152)
HSLhsl(218, 58%, 38%)
HSVhsv(218, 74%, 60%)
CMYKcmyk(73.7%, 46.1%, 0%, 40.4%)
CIE-LABlab(35.50, 10.52, -42.61)
CIE-LCHlch(35.50, 43.89, 283.87°)
OKLaboklab(44.73% -0.0215 -0.122)
OKLCHoklch(44.73% 0.124 260)
XYZxyz(9.5578, 8.7517, 30.8852)
Luminance0.0875 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#285298 #986E28
analogous
#288A98 #285298 #362898
triadic
#285298 #982852 #529828
tetradic
#285298 #98288A #986E28 #289836
square
#285298 #98288A #986E28 #289836
split-complementary
#285298 #983628 #8A9828
monochromatic
#0F1E37 #1B3868 #285298 #356CC8 #648FD6

Accessibility & contrast

On white

7.63
#285298 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#285298 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #285298
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##285298#FFFFFF#000000##FFFFFF
##2852981.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E599B
Deuteranopia (green-blind)
#174F97
Tritanopia (blue-blind)
#00626D
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #285298;
/* rgb */ color: rgb(40, 82, 152);
/* oklch */ color: oklch(44.7% 0.124 260.0);
Tailwind
colors: {
  custom: {
    50: '#7182b7',
    500: '#285298',
    950: '#000000',
  },
}
SCSS
$custom: #285298;
$custom-light: #7182b7;
$custom-dark: #000000;
JSON
{
  "hex": "#285298",
  "rgb": {
    "r": 40,
    "g": 82,
    "b": 152
  },
  "hsl": {
    "h": 217.5,
    "s": 58.333,
    "l": 37.647
  },
  "oklch": {
    "l": 0.44727,
    "c": 0.12392,
    "h": 260
  },
  "luminance": 0.08753
}

Semantic roles & 50–950 ramp

primary
#285298
secondary
#BC9960
accent
#A746E2
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #285298

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

Preview Lab → · Contrast checker → · Palette generator →

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