#282298#282298

#282298 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.6% C 0.182 H 274.3°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#282298
RGBrgb(40, 34, 152)
HSLhsl(243, 63%, 36%)
HSVhsv(243, 78%, 60%)
CMYKcmyk(73.7%, 77.6%, 0%, 40.4%)
CIE-LABlab(23.21, 41.70, -62.64)
CIE-LCHlch(23.21, 75.25, 303.65°)
OKLaboklab(35.6% 0.0135 -0.1812)
OKLCHoklch(35.6% 0.182 274.3)
XYZxyz(7.1127, 3.8615, 30.0702)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282298 #929822
analogous
#225798 #282298 #632298
triadic
#282298 #982822 #229828
tetradic
#282298 #982257 #929822 #229863
square
#282298 #982257 #929822 #229863
split-complementary
#282298 #986322 #579822
monochromatic
#0E0C34 #1B1766 #282298 #352DCA #615ADA

Accessibility & contrast

On white

11.85
#282298 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#282298 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282298
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282298#FFFFFF#000000##FFFFFF
##2822981.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #282298;
/* rgb */ color: rgb(40, 34, 152);
/* oklch */ color: oklch(35.6% 0.182 274.3);
Tailwind
colors: {
  custom: {
    50: '#755fb8',
    500: '#282298',
    950: '#000000',
  },
}
SCSS
$custom: #282298;
$custom-light: #755fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#282298",
  "rgb": {
    "r": 40,
    "g": 34,
    "b": 152
  },
  "hsl": {
    "h": 243.051,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.35605,
    "c": 0.1817,
    "h": 274.3
  },
  "luminance": 0.03862
}

Semantic roles & 50–950 ramp

primary
#282298
secondary
#B9BE57
accent
#E641DE
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #282298

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

Preview Lab → · Contrast checker → · Palette generator →

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