#285196#285196

#285196 is a dark, vivid blue. Relative luminance 0.085; OKLCH L 44.4% C 0.122 H 260.2°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#285196
RGBrgb(40, 81, 150)
HSLhsl(218, 58%, 37%)
HSVhsv(218, 73%, 59%)
CMYKcmyk(73.3%, 46%, 0%, 41.2%)
CIE-LABlab(35.08, 10.41, -42.08)
CIE-LCHlch(35.08, 43.35, 283.89°)
OKLaboklab(44.36% -0.0209 -0.1205)
OKLCHoklch(44.36% 0.122 260.2)
XYZxyz(9.3205, 8.5370, 30.0048)
Luminance0.0854 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#285196 #966D28
analogous
#288896 #285196 #362896
triadic
#285196 #962851 #519628
tetradic
#285196 #962888 #966D28 #289636
square
#285196 #962888 #966D28 #289636
split-complementary
#285196 #963628 #889628
monochromatic
#0E1D35 #1B3766 #285196 #356BC6 #638ED5

Accessibility & contrast

On white

7.76
#285196 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #285196
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##285196#FFFFFF#000000##FFFFFF
##2851961.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E5899
Deuteranopia (green-blind)
#184E95
Tritanopia (blue-blind)
#00616C
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #285196;
/* rgb */ color: rgb(40, 81, 150);
/* oklch */ color: oklch(44.4% 0.122 260.2);
Tailwind
colors: {
  custom: {
    50: '#7181b5',
    500: '#285196',
    950: '#000000',
  },
}
SCSS
$custom: #285196;
$custom-light: #7181b5;
$custom-dark: #000000;
JSON
{
  "hex": "#285196",
  "rgb": {
    "r": 40,
    "g": 81,
    "b": 150
  },
  "hsl": {
    "h": 217.636,
    "s": 57.895,
    "l": 37.255
  },
  "oklch": {
    "l": 0.44359,
    "c": 0.12231,
    "h": 260.2
  },
  "luminance": 0.08538
}

Semantic roles & 50–950 ramp

primary
#285196
secondary
#BB995F
accent
#A847E1
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #285196

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

Preview Lab → · Contrast checker → · Palette generator →

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