#285198#285198

#285198 is a dark, vivid blue. Relative luminance 0.086; OKLCH L 44.5% C 0.125 H 260.6°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#285198
RGBrgb(40, 81, 152)
HSLhsl(218, 58%, 38%)
HSVhsv(218, 74%, 60%)
CMYKcmyk(73.7%, 46.7%, 0%, 40.4%)
CIE-LABlab(35.21, 11.19, -43.09)
CIE-LCHlch(35.21, 44.52, 284.55°)
OKLaboklab(44.5% -0.0205 -0.1235)
OKLCHoklch(44.5% 0.125 260.6)
XYZxyz(9.4830, 8.6020, 30.8602)
Luminance0.0860 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#285198 #986F28
analogous
#288998 #285198 #372898
triadic
#285198 #982851 #519828
tetradic
#285198 #982889 #986F28 #289837
square
#285198 #982889 #986F28 #289837
split-complementary
#285198 #983728 #899828
monochromatic
#0F1D37 #1B3768 #285198 #356BC8 #648ED6

Accessibility & contrast

On white

7.72
#285198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#285198 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #285198
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##285198#FFFFFF#000000##FFFFFF
##2851981.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C589B
Deuteranopia (green-blind)
#144E97
Tritanopia (blue-blind)
#00626D
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #285198;
/* rgb */ color: rgb(40, 81, 152);
/* oklch */ color: oklch(44.5% 0.125 260.6);
Tailwind
colors: {
  custom: {
    50: '#7181b7',
    500: '#285198',
    950: '#000000',
  },
}
SCSS
$custom: #285198;
$custom-light: #7181b7;
$custom-dark: #000000;
JSON
{
  "hex": "#285198",
  "rgb": {
    "r": 40,
    "g": 81,
    "b": 152
  },
  "hsl": {
    "h": 218.036,
    "s": 58.333,
    "l": 37.647
  },
  "oklch": {
    "l": 0.445,
    "c": 0.12516,
    "h": 260.6
  },
  "luminance": 0.08603
}

Semantic roles & 50–950 ramp

primary
#285198
secondary
#BC9A60
accent
#A946E2
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #285198

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

Preview Lab → · Contrast checker → · Palette generator →

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