#302FB4#302FB4

#302FB4 is a dark, highly saturated blue. Relative luminance 0.060; OKLCH L 40.9% C 0.201 H 273.3°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#302FB4
RGBrgb(48, 47, 180)
HSLhsl(240, 59%, 45%)
HSVhsv(240, 74%, 71%)
CMYKcmyk(73.3%, 73.9%, 0%, 29.4%)
CIE-LABlab(29.30, 44.43, -69.50)
CIE-LCHlch(29.30, 82.49, 302.59°)
OKLaboklab(40.94% 0.0116 -0.2011)
OKLCHoklch(40.94% 0.201 273.3)
XYZxyz(10.4709, 5.9556, 43.7689)
Luminance0.0596 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302FB4 #B3B42F
analogous
#2F71B4 #302FB4 #732FB4
triadic
#302FB4 #B4302F #2FB430
tetradic
#302FB4 #B42F71 #B3B42F #2FB473
square
#302FB4 #B42F71 #B3B42F #2FB473
split-complementary
#302FB4 #B4732F #71B42F
monochromatic
#161653 #232283 #302FB4 #504FD1 #8080DE

Accessibility & contrast

On white

9.58
#302FB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#302FB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302FB4
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302FB4#FFFFFF#000000##FFFFFF
##302FB41.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB8
Deuteranopia (green-blind)
#003FB2
Tritanopia (blue-blind)
#00556F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #302fb4;
/* rgb */ color: rgb(48, 47, 180);
/* oklch */ color: oklch(40.9% 0.201 273.3);
Tailwind
colors: {
  custom: {
    50: '#7d69cc',
    500: '#302fb4',
    950: '#000000',
  },
}
SCSS
$custom: #302fb4;
$custom-light: #7d69cc;
$custom-dark: #000000;
JSON
{
  "hex": "#302fb4",
  "rgb": {
    "r": 48,
    "g": 47,
    "b": 180
  },
  "hsl": {
    "h": 240.451,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.40941,
    "c": 0.20141,
    "h": 273.3
  },
  "luminance": 0.05957
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #302FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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