#302799#302799

#302799 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.0% C 0.176 H 276.9°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#302799
RGBrgb(48, 39, 153)
HSLhsl(245, 59%, 38%)
HSVhsv(245, 75%, 60%)
CMYKcmyk(68.6%, 74.5%, 0%, 40%)
CIE-LABlab(24.89, 40.05, -60.47)
CIE-LCHlch(24.89, 72.53, 303.51°)
OKLaboklab(36.97% 0.0212 -0.1747)
OKLCHoklch(36.97% 0.176 276.9)
XYZxyz(7.6923, 4.3786, 30.5706)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302799 #909927
analogous
#275799 #302799 #692799
triadic
#302799 #993027 #279930
tetradic
#302799 #992757 #909927 #279969
square
#302799 #992757 #909927 #279969
split-complementary
#302799 #996927 #579927
monochromatic
#110E37 #211B68 #302799 #3F33CA #6C63D7

Accessibility & contrast

On white

11.20
#302799 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#302799 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302799
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302799#FFFFFF#000000##FFFFFF
##3027991.0011.201.8811.20
#FFFFFF11.201.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409C
Deuteranopia (green-blind)
#003697
Tritanopia (blue-blind)
#00475E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #302799;
/* rgb */ color: rgb(48, 39, 153);
/* oklch */ color: oklch(37.0% 0.176 276.9);
Tailwind
colors: {
  custom: {
    50: '#7863b8',
    500: '#302799',
    950: '#000000',
  },
}
SCSS
$custom: #302799;
$custom-light: #7863b8;
$custom-dark: #000000;
JSON
{
  "hex": "#302799",
  "rgb": {
    "r": 48,
    "g": 39,
    "b": 153
  },
  "hsl": {
    "h": 244.737,
    "s": 59.375,
    "l": 37.647
  },
  "oklch": {
    "l": 0.36972,
    "c": 0.17598,
    "h": 276.9
  },
  "luminance": 0.04379
}

Semantic roles & 50–950 ramp

primary
#302799
secondary
#B5BD5F
accent
#E345D6
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #302799

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

Preview Lab → · Contrast checker → · Palette generator →

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