#302891#302891

#302891 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.3% C 0.165 H 277.7°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#302891
RGBrgb(48, 40, 145)
HSLhsl(245, 57%, 36%)
HSVhsv(245, 72%, 57%)
CMYKcmyk(66.9%, 72.4%, 0%, 43.1%)
CIE-LABlab(24.29, 36.79, -56.52)
CIE-LCHlch(24.29, 67.44, 303.06°)
OKLaboklab(36.3% 0.0221 -0.1632)
OKLCHoklch(36.3% 0.165 277.7)
XYZxyz(7.0869, 4.1897, 27.2178)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302891 #899128
analogous
#285591 #302891 #652891
triadic
#302891 #913028 #289130
tetradic
#302891 #912855 #899128 #289165
square
#302891 #912855 #899128 #289165
split-complementary
#302891 #916528 #559128
monochromatic
#100E31 #201B61 #302891 #4035C1 #6960D3

Accessibility & contrast

On white

11.43
#302891 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#302891 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302891
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302891#FFFFFF#000000##FFFFFF
##3028911.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E94
Deuteranopia (green-blind)
#00358F
Tritanopia (blue-blind)
#004559
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #302891;
/* rgb */ color: rgb(48, 40, 145);
/* oklch */ color: oklch(36.3% 0.165 277.7);
Tailwind
colors: {
  custom: {
    50: '#7663b2',
    500: '#302891',
    950: '#000000',
  },
}
SCSS
$custom: #302891;
$custom-light: #7663b2;
$custom-dark: #000000;
JSON
{
  "hex": "#302891",
  "rgb": {
    "r": 48,
    "g": 40,
    "b": 145
  },
  "hsl": {
    "h": 244.571,
    "s": 56.757,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36304,
    "c": 0.16468,
    "h": 277.7
  },
  "luminance": 0.0419
}

Semantic roles & 50–950 ramp

primary
#302891
secondary
#B2B95C
accent
#E048D4
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #302891

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

Preview Lab → · Contrast checker → · Palette generator →

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