#282397#282397

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

Color values

HEX#282397
RGBrgb(40, 35, 151)
HSLhsl(243, 62%, 36%)
HSVhsv(243, 77%, 59%)
CMYKcmyk(73.5%, 76.8%, 0%, 40.8%)
CIE-LABlab(23.29, 40.81, -61.89)
CIE-LCHlch(23.29, 74.13, 303.40°)
OKLaboklab(35.63% 0.0133 -0.179)
OKLCHoklch(35.63% 0.18 274.2)
XYZxyz(7.0602, 3.8868, 29.6503)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282397 #929723
analogous
#235897 #282397 #622397
triadic
#282397 #972823 #239728
tetradic
#282397 #972358 #929723 #239762
square
#282397 #972358 #929723 #239762
split-complementary
#282397 #976223 #589723
monochromatic
#0E0C34 #1B1765 #282397 #352FC9 #615BD9

Accessibility & contrast

On white

11.81
#282397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#282397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282397
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282397#FFFFFF#000000##FFFFFF
##2823971.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9A
Deuteranopia (green-blind)
#003295
Tritanopia (blue-blind)
#00455B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #282397;
/* rgb */ color: rgb(40, 35, 151);
/* oklch */ color: oklch(35.6% 0.179 274.2);
Tailwind
colors: {
  custom: {
    50: '#7460b7',
    500: '#282397',
    950: '#000000',
  },
}
SCSS
$custom: #282397;
$custom-light: #7460b7;
$custom-dark: #000000;
JSON
{
  "hex": "#282397",
  "rgb": {
    "r": 40,
    "g": 35,
    "b": 151
  },
  "hsl": {
    "h": 242.586,
    "s": 62.366,
    "l": 36.471
  },
  "oklch": {
    "l": 0.35633,
    "c": 0.1795,
    "h": 274.2
  },
  "luminance": 0.03888
}

Semantic roles & 50–950 ramp

primary
#282397
secondary
#B9BE58
accent
#E542DE
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #282397

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

Preview Lab → · Contrast checker → · Palette generator →

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