#282798#282798

#282798 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.3% C 0.177 H 273.6°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#282798
RGBrgb(40, 39, 152)
HSLhsl(241, 59%, 37%)
HSVhsv(241, 74%, 60%)
CMYKcmyk(73.7%, 74.3%, 0%, 40.4%)
CIE-LABlab(24.22, 38.84, -60.97)
CIE-LCHlch(24.22, 72.29, 302.50°)
OKLaboklab(36.32% 0.011 -0.1764)
OKLCHoklch(36.32% 0.177 273.6)
XYZxyz(7.2662, 4.1684, 30.1213)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282798 #979827
analogous
#275F98 #282798 #612798
triadic
#282798 #982827 #279828
tetradic
#282798 #98275F #979827 #279861
square
#282798 #98275F #979827 #279861
split-complementary
#282798 #986127 #5F9827
monochromatic
#0E0E37 #1B1B67 #282798 #3533C9 #6463D7

Accessibility & contrast

On white

11.45
#282798 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#282798 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282798
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282798#FFFFFF#000000##FFFFFF
##2827981.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9B
Deuteranopia (green-blind)
#003496
Tritanopia (blue-blind)
#00475D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #282798;
/* rgb */ color: rgb(40, 39, 152);
/* oklch */ color: oklch(36.3% 0.177 273.6);
Tailwind
colors: {
  custom: {
    50: '#7462b7',
    500: '#282798',
    950: '#000000',
  },
}
SCSS
$custom: #282798;
$custom-light: #7462b7;
$custom-dark: #000000;
JSON
{
  "hex": "#282798",
  "rgb": {
    "r": 40,
    "g": 39,
    "b": 152
  },
  "hsl": {
    "h": 240.531,
    "s": 59.162,
    "l": 37.451
  },
  "oklch": {
    "l": 0.36322,
    "c": 0.17671,
    "h": 273.6
  },
  "luminance": 0.04169
}

Semantic roles & 50–950 ramp

primary
#282798
secondary
#BCBC5E
accent
#E245E1
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #282798

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

Preview Lab → · Contrast checker → · Palette generator →

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