#302299#302299

#302299 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.3% C 0.181 H 277.7°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#302299
RGBrgb(48, 34, 153)
HSLhsl(247, 64%, 37%)
HSVhsv(247, 78%, 60%)
CMYKcmyk(68.6%, 77.8%, 0%, 40%)
CIE-LABlab(23.91, 42.82, -62.08)
CIE-LCHlch(23.91, 75.42, 304.59°)
OKLaboklab(36.28% 0.0241 -0.1794)
OKLCHoklch(36.28% 0.181 277.7)
XYZxyz(7.5389, 4.0717, 30.5194)
Luminance0.0407 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302299 #8B9922
analogous
#225099 #302299 #6C2299
triadic
#302299 #993022 #229930
tetradic
#302299 #992250 #8B9922 #22996C
square
#302299 #992250 #8B9922 #22996C
split-complementary
#302299 #996C22 #509922
monochromatic
#110C35 #201767 #302299 #402DCB #6A5BDB

Accessibility & contrast

On white

11.57
#302299 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#302299 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302299
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302299#FFFFFF#000000##FFFFFF
##3022991.0011.571.8111.57
#FFFFFF11.571.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9C
Deuteranopia (green-blind)
#003497
Tritanopia (blue-blind)
#00455C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #302299;
/* rgb */ color: rgb(48, 34, 153);
/* oklch */ color: oklch(36.3% 0.181 277.7);
Tailwind
colors: {
  custom: {
    50: '#7860b8',
    500: '#302299',
    950: '#000000',
  },
}
SCSS
$custom: #302299;
$custom-light: #7860b8;
$custom-dark: #000000;
JSON
{
  "hex": "#302299",
  "rgb": {
    "r": 48,
    "g": 34,
    "b": 153
  },
  "hsl": {
    "h": 247.059,
    "s": 63.636,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36282,
    "c": 0.18099,
    "h": 277.7
  },
  "luminance": 0.04072
}

Semantic roles & 50–950 ramp

primary
#302299
secondary
#B3BF58
accent
#E741D3
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #302299

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

Preview Lab → · Contrast checker → · Palette generator →

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