#302273#302273

#302273 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.4% C 0.132 H 284.2°. Best body text is #FFFFFF at 13.11:1 contrast (WCAG AA passes).

Color values

HEX#302273
RGBrgb(48, 34, 115)
HSLhsl(250, 54%, 29%)
HSVhsv(250, 70%, 45%)
CMYKcmyk(58.3%, 70.4%, 0%, 54.9%)
CIE-LABlab(20.08, 30.36, -44.50)
CIE-LCHlch(20.08, 53.87, 304.30°)
OKLaboklab(32.41% 0.0323 -0.128)
OKLCHoklch(32.41% 0.132 284.2)
XYZxyz(4.8845, 3.0099, 16.5399)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302273 #657322
analogous
#223D73 #302273 #592273
triadic
#302273 #733022 #227330
tetradic
#302273 #73223D #657322 #227359
square
#302273 #73223D #657322 #227359
split-complementary
#302273 #735922 #3D7322
monochromatic
#0A0718 #1C1444 #302273 #4430A2 #5D47C9

Accessibility & contrast

On white

13.11
#302273 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#302273 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302273
13.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302273#FFFFFF#000000##FFFFFF
##3022731.0013.111.6013.11
#FFFFFF13.111.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003375
Deuteranopia (green-blind)
#002E71
Tritanopia (blue-blind)
#103747
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #302273;
/* rgb */ color: rgb(48, 34, 115);
/* oklch */ color: oklch(32.4% 0.132 284.2);
Tailwind
colors: {
  custom: {
    50: '#705e9c',
    500: '#302273',
    950: '#000000',
  },
}
SCSS
$custom: #302273;
$custom-light: #705e9c;
$custom-dark: #000000;
JSON
{
  "hex": "#302273",
  "rgb": {
    "r": 48,
    "g": 34,
    "b": 115
  },
  "hsl": {
    "h": 250.37,
    "s": 54.362,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32409,
    "c": 0.13197,
    "h": 284.2
  },
  "luminance": 0.0301
}

Semantic roles & 50–950 ramp

primary
#302273
secondary
#96A64B
accent
#DE4AC4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #302273

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

Preview Lab → · Contrast checker → · Palette generator →

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