#285098#285098

#285098 is a dark, vivid blue. Relative luminance 0.085; OKLCH L 44.3% C 0.126 H 261.1°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#285098
RGBrgb(40, 80, 152)
HSLhsl(219, 58%, 38%)
HSVhsv(219, 74%, 60%)
CMYKcmyk(73.7%, 47.4%, 0%, 40.4%)
CIE-LABlab(34.91, 11.85, -43.56)
CIE-LCHlch(34.91, 45.14, 285.22°)
OKLaboklab(44.27% -0.0196 -0.1249)
OKLCHoklch(44.27% 0.126 261.1)
XYZxyz(9.4092, 8.4544, 30.8357)
Luminance0.0846 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#285098 #987028
analogous
#288898 #285098 #382898
triadic
#285098 #982850 #509828
tetradic
#285098 #982888 #987028 #289838
square
#285098 #982888 #987028 #289838
split-complementary
#285098 #983828 #889828
monochromatic
#0F1D37 #1B3768 #285098 #356AC8 #648DD6

Accessibility & contrast

On white

7.80
#285098 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#285098 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #285098
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##285098#FFFFFF#000000##FFFFFF
##2850981.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A589B
Deuteranopia (green-blind)
#104D97
Tritanopia (blue-blind)
#00616C
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #285098;
/* rgb */ color: rgb(40, 80, 152);
/* oklch */ color: oklch(44.3% 0.126 261.1);
Tailwind
colors: {
  custom: {
    50: '#7180b7',
    500: '#285098',
    950: '#000000',
  },
}
SCSS
$custom: #285098;
$custom-light: #7180b7;
$custom-dark: #000000;
JSON
{
  "hex": "#285098",
  "rgb": {
    "r": 40,
    "g": 80,
    "b": 152
  },
  "hsl": {
    "h": 218.571,
    "s": 58.333,
    "l": 37.647
  },
  "oklch": {
    "l": 0.44273,
    "c": 0.1264,
    "h": 261.1
  },
  "luminance": 0.08455
}

Semantic roles & 50–950 ramp

primary
#285098
secondary
#BC9B60
accent
#AA46E2
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #285098

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

Preview Lab → · Contrast checker → · Palette generator →

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