#302296#302296

#302296 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.0% C 0.177 H 278.1°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#302296
RGBrgb(48, 34, 150)
HSLhsl(247, 63%, 36%)
HSVhsv(247, 77%, 59%)
CMYKcmyk(68%, 77.3%, 0%, 41.2%)
CIE-LABlab(23.58, 41.86, -60.77)
CIE-LCHlch(23.58, 73.79, 304.56°)
OKLaboklab(35.96% 0.0249 -0.1755)
OKLCHoklch(35.96% 0.177 278.1)
XYZxyz(7.2942, 3.9738, 29.2309)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302296 #889622
analogous
#224E96 #302296 #6A2296
triadic
#302296 #963022 #229630
tetradic
#302296 #96224E #889622 #22966A
square
#302296 #96224E #889622 #22966A
split-complementary
#302296 #966A22 #4E9622
monochromatic
#100B32 #201764 #302296 #402DC8 #6959D9

Accessibility & contrast

On white

11.70
#302296 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #302296
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302296#FFFFFF#000000##FFFFFF
##3022961.0011.701.7911.70
#FFFFFF11.701.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D99
Deuteranopia (green-blind)
#003394
Tritanopia (blue-blind)
#00445B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #302296;
/* rgb */ color: rgb(48, 34, 150);
/* oklch */ color: oklch(36.0% 0.177 278.1);
Tailwind
colors: {
  custom: {
    50: '#7760b6',
    500: '#302296',
    950: '#000000',
  },
}
SCSS
$custom: #302296;
$custom-light: #7760b6;
$custom-dark: #000000;
JSON
{
  "hex": "#302296",
  "rgb": {
    "r": 48,
    "g": 34,
    "b": 150
  },
  "hsl": {
    "h": 247.241,
    "s": 63.043,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35959,
    "c": 0.1773,
    "h": 278.1
  },
  "luminance": 0.03974
}

Semantic roles & 50–950 ramp

primary
#302296
secondary
#B1BE56
accent
#E642D2
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #302296

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

Preview Lab → · Contrast checker → · Palette generator →

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