#285197#285197

#285197 is a dark, vivid blue. Relative luminance 0.086; OKLCH L 44.4% C 0.124 H 260.4°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#285197
RGBrgb(40, 81, 151)
HSLhsl(218, 58%, 37%)
HSVhsv(218, 74%, 59%)
CMYKcmyk(73.5%, 46.4%, 0%, 40.8%)
CIE-LABlab(35.14, 10.80, -42.59)
CIE-LCHlch(35.14, 43.93, 284.23°)
OKLaboklab(44.43% -0.0207 -0.122)
OKLCHoklch(44.43% 0.124 260.4)
XYZxyz(9.4014, 8.5693, 30.4307)
Luminance0.0857 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#285197 #976E28
analogous
#288897 #285197 #372897
triadic
#285197 #972851 #519728
tetradic
#285197 #972888 #976E28 #289737
square
#285197 #972888 #976E28 #289737
split-complementary
#285197 #973728 #889728
monochromatic
#0E1D36 #1B3767 #285197 #356BC7 #648ED6

Accessibility & contrast

On white

7.74
#285197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#285197 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #285197
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##285197#FFFFFF#000000##FFFFFF
##2851971.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D589A
Deuteranopia (green-blind)
#164E96
Tritanopia (blue-blind)
#00616C
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #285197;
/* rgb */ color: rgb(40, 81, 151);
/* oklch */ color: oklch(44.4% 0.124 260.4);
Tailwind
colors: {
  custom: {
    50: '#7181b6',
    500: '#285197',
    950: '#000000',
  },
}
SCSS
$custom: #285197;
$custom-light: #7181b6;
$custom-dark: #000000;
JSON
{
  "hex": "#285197",
  "rgb": {
    "r": 40,
    "g": 81,
    "b": 151
  },
  "hsl": {
    "h": 217.838,
    "s": 58.115,
    "l": 37.451
  },
  "oklch": {
    "l": 0.44429,
    "c": 0.12374,
    "h": 260.4
  },
  "luminance": 0.0857
}

Semantic roles & 50–950 ramp

primary
#285197
secondary
#BC995F
accent
#A846E1
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #285197

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

Preview Lab → · Contrast checker → · Palette generator →

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