#302FB5#302FB5

#302FB5 is a dark, highly saturated blue. Relative luminance 0.060; OKLCH L 41.0% C 0.203 H 273.2°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#302FB5
RGBrgb(48, 47, 181)
HSLhsl(240, 59%, 45%)
HSVhsv(240, 74%, 71%)
CMYKcmyk(73.5%, 74%, 0%, 29%)
CIE-LABlab(29.40, 44.76, -69.92)
CIE-LCHlch(29.40, 83.03, 302.63°)
OKLaboklab(41.05% 0.0115 -0.2023)
OKLCHoklch(41.05% 0.203 273.2)
XYZxyz(10.5731, 5.9965, 44.3073)
Luminance0.0600 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302FB5 #B4B52F
analogous
#2F71B5 #302FB5 #732FB5
triadic
#302FB5 #B5302F #2FB530
tetradic
#302FB5 #B52F71 #B4B52F #2FB573
square
#302FB5 #B52F71 #B4B52F #2FB573
split-complementary
#302FB5 #B5732F #71B52F
monochromatic
#161654 #232284 #302FB5 #5150D1 #8180DE

Accessibility & contrast

On white

9.55
#302FB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#302FB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302FB5
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302FB5#FFFFFF#000000##FFFFFF
##302FB51.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB9
Deuteranopia (green-blind)
#003FB3
Tritanopia (blue-blind)
#00566F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #302fb5;
/* rgb */ color: rgb(48, 47, 181);
/* oklch */ color: oklch(41.0% 0.203 273.2);
Tailwind
colors: {
  custom: {
    50: '#7d69cc',
    500: '#302fb5',
    950: '#000000',
  },
}
SCSS
$custom: #302fb5;
$custom-light: #7d69cc;
$custom-dark: #000000;
JSON
{
  "hex": "#302fb5",
  "rgb": {
    "r": 48,
    "g": 47,
    "b": 181
  },
  "hsl": {
    "h": 240.448,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.41045,
    "c": 0.20263,
    "h": 273.2
  },
  "luminance": 0.05998
}

Semantic roles & 50–950 ramp

primary
#302FB5
secondary
#C6C779
accent
#E246E1
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0B0614
muted
#7C7A82

Preview Lab

Preview with #302FB5

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

Preview Lab → · Contrast checker → · Palette generator →

#302FB5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva