#302291#302291

#302291 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.4% C 0.171 H 278.8°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#302291
RGBrgb(48, 34, 145)
HSLhsl(248, 62%, 35%)
HSVhsv(248, 77%, 57%)
CMYKcmyk(66.9%, 76.6%, 0%, 43.1%)
CIE-LABlab(23.05, 40.24, -58.56)
CIE-LCHlch(23.05, 71.05, 304.50°)
OKLaboklab(35.43% 0.0261 -0.1691)
OKLCHoklch(35.43% 0.171 278.8)
XYZxyz(6.9001, 3.8162, 27.1555)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302291 #839122
analogous
#224B91 #302291 #682291
triadic
#302291 #913022 #229130
tetradic
#302291 #91224B #839122 #229168
square
#302291 #91224B #839122 #229168
split-complementary
#302291 #916822 #4B9122
monochromatic
#0F0B2E #20165F #302291 #402EC3 #6656D7

Accessibility & contrast

On white

11.91
#302291 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#302291 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302291
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302291#FFFFFF#000000##FFFFFF
##3022911.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B94
Deuteranopia (green-blind)
#00328F
Tritanopia (blue-blind)
#004258
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #302291;
/* rgb */ color: rgb(48, 34, 145);
/* oklch */ color: oklch(35.4% 0.171 278.8);
Tailwind
colors: {
  custom: {
    50: '#765fb2',
    500: '#302291',
    950: '#000000',
  },
}
SCSS
$custom: #302291;
$custom-light: #765fb2;
$custom-dark: #000000;
JSON
{
  "hex": "#302291",
  "rgb": {
    "r": 48,
    "g": 34,
    "b": 145
  },
  "hsl": {
    "h": 247.568,
    "s": 62.011,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35427,
    "c": 0.17109,
    "h": 278.8
  },
  "luminance": 0.03817
}

Semantic roles & 50–950 ramp

primary
#302291
secondary
#AEBB53
accent
#E543D1
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #302291

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

Preview Lab → · Contrast checker → · Palette generator →

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