#302279#302279

#302279 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.0% C 0.140 H 282.9°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#302279
RGBrgb(48, 34, 121)
HSLhsl(250, 56%, 30%)
HSVhsv(250, 72%, 47%)
CMYKcmyk(60.3%, 71.9%, 0%, 52.5%)
CIE-LABlab(20.64, 32.36, -47.43)
CIE-LCHlch(20.64, 57.41, 304.30°)
OKLaboklab(32.99% 0.0313 -0.1365)
OKLCHoklch(32.99% 0.14 282.9)
XYZxyz(5.2411, 3.1526, 18.4178)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302279 #6B7922
analogous
#223F79 #302279 #5B2279
triadic
#302279 #793022 #227930
tetradic
#302279 #79223F #6B7922 #22795B
square
#302279 #79223F #6B7922 #22795B
split-complementary
#302279 #795B22 #3F7922
monochromatic
#0A0719 #1D1549 #302279 #432FA9 #5E49CC

Accessibility & contrast

On white

12.88
#302279 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#302279 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302279
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302279#FFFFFF#000000##FFFFFF
##3022791.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347C
Deuteranopia (green-blind)
#002F77
Tritanopia (blue-blind)
#06394A
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #302279;
/* rgb */ color: rgb(48, 34, 121);
/* oklch */ color: oklch(33.0% 0.140 282.9);
Tailwind
colors: {
  custom: {
    50: '#715ea1',
    500: '#302279',
    950: '#000000',
  },
}
SCSS
$custom: #302279;
$custom-light: #715ea1;
$custom-dark: #000000;
JSON
{
  "hex": "#302279",
  "rgb": {
    "r": 48,
    "g": 34,
    "b": 121
  },
  "hsl": {
    "h": 249.655,
    "s": 56.129,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32985,
    "c": 0.14009,
    "h": 282.9
  },
  "luminance": 0.03153
}

Semantic roles & 50–950 ramp

primary
#302279
secondary
#9CAC4B
accent
#DF48C7
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #302279

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

Preview Lab → · Contrast checker → · Palette generator →

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