#282297#282297

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

Color values

HEX#282297
RGBrgb(40, 34, 151)
HSLhsl(243, 63%, 36%)
HSVhsv(243, 77%, 59%)
CMYKcmyk(73.5%, 77.5%, 0%, 40.8%)
CIE-LABlab(23.10, 41.37, -62.21)
CIE-LCHlch(23.10, 74.71, 303.62°)
OKLaboklab(35.49% 0.0137 -0.1799)
OKLCHoklch(35.49% 0.18 274.4)
XYZxyz(7.0312, 3.8288, 29.6406)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282297 #919722
analogous
#225797 #282297 #632297
triadic
#282297 #972822 #229728
tetradic
#282297 #972257 #919722 #229763
square
#282297 #972257 #919722 #229763
split-complementary
#282297 #976322 #579722
monochromatic
#0E0C33 #1B1765 #282297 #352DC9 #605ADA

Accessibility & contrast

On white

11.89
#282297 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #282297
11.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282297#FFFFFF#000000##FFFFFF
##2822971.0011.891.7711.89
#FFFFFF11.891.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.891.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #282297;
/* rgb */ color: rgb(40, 34, 151);
/* oklch */ color: oklch(35.5% 0.180 274.4);
Tailwind
colors: {
  custom: {
    50: '#745fb7',
    500: '#282297',
    950: '#000000',
  },
}
SCSS
$custom: #282297;
$custom-light: #745fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#282297",
  "rgb": {
    "r": 40,
    "g": 34,
    "b": 151
  },
  "hsl": {
    "h": 243.077,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35494,
    "c": 0.18046,
    "h": 274.4
  },
  "luminance": 0.0383
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #282297

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

Preview Lab → · Contrast checker → · Palette generator →

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