#285498#285498

#285498 is a mid, vivid blue. Relative luminance 0.091; OKLCH L 45.2% C 0.121 H 258.9°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#285498
RGBrgb(40, 84, 152)
HSLhsl(216, 58%, 38%)
HSVhsv(216, 74%, 60%)
CMYKcmyk(73.7%, 44.7%, 0%, 40.4%)
CIE-LABlab(36.10, 9.20, -41.66)
CIE-LCHlch(36.10, 42.67, 282.45°)
OKLaboklab(45.18% -0.0233 -0.1192)
OKLCHoklch(45.18% 0.121 258.9)
XYZxyz(9.7108, 9.0577, 30.9362)
Luminance0.0906 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#285498 #986C28
analogous
#288C98 #285498 #342898
triadic
#285498 #982854 #549828
tetradic
#285498 #98288C #986C28 #289834
square
#285498 #98288C #986C28 #289834
split-complementary
#285498 #983428 #8C9828
monochromatic
#0F1E37 #1B3968 #285498 #356FC8 #6491D6

Accessibility & contrast

On white

7.47
#285498 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#285498 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #285498
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##285498#FFFFFF#000000##FFFFFF
##2854981.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#325A9B
Deuteranopia (green-blind)
#1D5097
Tritanopia (blue-blind)
#00646E
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #285498;
/* rgb */ color: rgb(40, 84, 152);
/* oklch */ color: oklch(45.2% 0.121 258.9);
Tailwind
colors: {
  custom: {
    50: '#7183b7',
    500: '#285498',
    950: '#000000',
  },
}
SCSS
$custom: #285498;
$custom-light: #7183b7;
$custom-dark: #000000;
JSON
{
  "hex": "#285498",
  "rgb": {
    "r": 40,
    "g": 84,
    "b": 152
  },
  "hsl": {
    "h": 216.429,
    "s": 58.333,
    "l": 37.647
  },
  "oklch": {
    "l": 0.45185,
    "c": 0.12148,
    "h": 258.9
  },
  "luminance": 0.09059
}

Semantic roles & 50–950 ramp

primary
#285498
secondary
#BC9860
accent
#A546E2
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #285498

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

Preview Lab → · Contrast checker → · Palette generator →

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