#282198#282198

#282198 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.5% C 0.183 H 274.4°. Best body text is #FFFFFF at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#282198
RGBrgb(40, 33, 152)
HSLhsl(244, 64%, 36%)
HSVhsv(244, 78%, 60%)
CMYKcmyk(73.7%, 78.3%, 0%, 40.4%)
CIE-LABlab(23.02, 42.25, -62.96)
CIE-LCHlch(23.02, 75.82, 303.86°)
OKLaboklab(35.47% 0.014 -0.1821)
OKLCHoklch(35.47% 0.183 274.4)
XYZxyz(7.0845, 3.8051, 30.0608)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282198 #919821
analogous
#215698 #282198 #642198
triadic
#282198 #982821 #219828
tetradic
#282198 #982156 #919821 #219864
square
#282198 #982156 #919821 #219864
split-complementary
#282198 #986421 #569821
monochromatic
#0E0B33 #1B1666 #282198 #352CCA #6059DB

Accessibility & contrast

On white

11.92
#282198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#282198 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282198
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282198#FFFFFF#000000##FFFFFF
##2821981.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9B
Deuteranopia (green-blind)
#003196
Tritanopia (blue-blind)
#00455C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #282198;
/* rgb */ color: rgb(40, 33, 152);
/* oklch */ color: oklch(35.5% 0.183 274.4);
Tailwind
colors: {
  custom: {
    50: '#755fb8',
    500: '#282198',
    950: '#000000',
  },
}
SCSS
$custom: #282198;
$custom-light: #755fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#282198",
  "rgb": {
    "r": 40,
    "g": 33,
    "b": 152
  },
  "hsl": {
    "h": 243.529,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.3547,
    "c": 0.18264,
    "h": 274.4
  },
  "luminance": 0.03806
}

Semantic roles & 50–950 ramp

primary
#282198
secondary
#B9BF56
accent
#E740DE
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #282198

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

Preview Lab → · Contrast checker → · Palette generator →

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