#282898#282898

#282898 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.5% C 0.176 H 273.4°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#282898
RGBrgb(40, 40, 152)
HSLhsl(240, 58%, 38%)
HSVhsv(240, 74%, 60%)
CMYKcmyk(73.7%, 73.7%, 0%, 40.4%)
CIE-LABlab(24.43, 38.25, -60.62)
CIE-LCHlch(24.43, 71.68, 302.25°)
OKLaboklab(36.47% 0.0105 -0.1753)
OKLCHoklch(36.47% 0.176 273.4)
XYZxyz(7.2995, 4.2350, 30.1324)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282898 #989828
analogous
#286098 #282898 #602898
triadic
#282898 #982828 #289828
tetradic
#282898 #982860 #989828 #289860
square
#282898 #982860 #989828 #289860
split-complementary
#282898 #986028 #609828
monochromatic
#0F0F37 #1B1B68 #282898 #3535C8 #6464D6

Accessibility & contrast

On white

11.37
#282898 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#282898 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282898
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282898#FFFFFF#000000##FFFFFF
##2828981.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #282898;
/* rgb */ color: rgb(40, 40, 152);
/* oklch */ color: oklch(36.5% 0.176 273.4);
Tailwind
colors: {
  custom: {
    50: '#7463b7',
    500: '#282898',
    950: '#000000',
  },
}
SCSS
$custom: #282898;
$custom-light: #7463b7;
$custom-dark: #000000;
JSON
{
  "hex": "#282898",
  "rgb": {
    "r": 40,
    "g": 40,
    "b": 152
  },
  "hsl": {
    "h": 240,
    "s": 58.333,
    "l": 37.647
  },
  "oklch": {
    "l": 0.36474,
    "c": 0.17566,
    "h": 273.4
  },
  "luminance": 0.04236
}

Semantic roles & 50–950 ramp

primary
#282898
secondary
#BCBC60
accent
#E246E2
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #282898

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

Preview Lab → · Contrast checker → · Palette generator →

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