#282791#282791

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

Color values

HEX#282791
RGBrgb(40, 39, 145)
HSLhsl(241, 58%, 36%)
HSVhsv(241, 73%, 57%)
CMYKcmyk(72.4%, 73.1%, 0%, 43.1%)
CIE-LABlab(23.49, 36.42, -57.86)
CIE-LCHlch(23.49, 68.37, 302.19°)
OKLaboklab(35.58% 0.0122 -0.1673)
OKLCHoklch(35.58% 0.168 274.2)
XYZxyz(6.7097, 3.9458, 27.1906)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282791 #909127
analogous
#275B91 #282791 #5D2791
triadic
#282791 #912827 #279128
tetradic
#282791 #91275B #909127 #27915D
square
#282791 #91275B #909127 #27915D
split-complementary
#282791 #915D27 #5B9127
monochromatic
#0D0D31 #1B1A61 #282791 #3534C1 #605FD4

Accessibility & contrast

On white

11.74
#282791 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#282791 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282791
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282791#FFFFFF#000000##FFFFFF
##2827911.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D94
Deuteranopia (green-blind)
#00338F
Tritanopia (blue-blind)
#004559
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #282791;
/* rgb */ color: rgb(40, 39, 145);
/* oklch */ color: oklch(35.6% 0.168 274.2);
Tailwind
colors: {
  custom: {
    50: '#7362b2',
    500: '#282791',
    950: '#000000',
  },
}
SCSS
$custom: #282791;
$custom-light: #7362b2;
$custom-dark: #000000;
JSON
{
  "hex": "#282791",
  "rgb": {
    "r": 40,
    "g": 39,
    "b": 145
  },
  "hsl": {
    "h": 240.566,
    "s": 57.609,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35583,
    "c": 0.16774,
    "h": 274.2
  },
  "luminance": 0.03946
}

Semantic roles & 50–950 ramp

primary
#282791
secondary
#B8B95B
accent
#E147DF
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #282791

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

Preview Lab → · Contrast checker → · Palette generator →

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