#282098#282098

#282098 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.3% C 0.184 H 274.5°. Best body text is #FFFFFF at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#282098
RGBrgb(40, 32, 152)
HSLhsl(244, 65%, 36%)
HSVhsv(244, 79%, 60%)
CMYKcmyk(73.7%, 78.9%, 0%, 40.4%)
CIE-LABlab(22.83, 42.79, -63.27)
CIE-LCHlch(22.83, 76.38, 304.07°)
OKLaboklab(35.34% 0.0144 -0.183)
OKLCHoklch(35.34% 0.184 274.5)
XYZxyz(7.0572, 3.7504, 30.0517)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282098 #909820
analogous
#205498 #282098 #642098
triadic
#282098 #982820 #209828
tetradic
#282098 #982054 #909820 #209864
square
#282098 #982054 #909820 #209864
split-complementary
#282098 #986420 #549820
monochromatic
#0D0B33 #1B1565 #282098 #352BCB #6057DC

Accessibility & contrast

On white

12.00
#282098 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#282098 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282098
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282098#FFFFFF#000000##FFFFFF
##2820981.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9B
Deuteranopia (green-blind)
#003196
Tritanopia (blue-blind)
#00445B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #282098;
/* rgb */ color: rgb(40, 32, 152);
/* oklch */ color: oklch(35.3% 0.184 274.5);
Tailwind
colors: {
  custom: {
    50: '#755eb8',
    500: '#282098',
    950: '#000000',
  },
}
SCSS
$custom: #282098;
$custom-light: #755eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#282098",
  "rgb": {
    "r": 40,
    "g": 32,
    "b": 152
  },
  "hsl": {
    "h": 244,
    "s": 65.217,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35339,
    "c": 0.18357,
    "h": 274.5
  },
  "luminance": 0.03751
}

Semantic roles & 50–950 ramp

primary
#282098
secondary
#B8BF54
accent
#E840DD
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #282098

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

Preview Lab → · Contrast checker → · Palette generator →

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