#302BBB#302BBB

#302BBB is a dark, highly saturated blue. Relative luminance 0.059; OKLCH L 41.1% C 0.214 H 273.2°. Best body text is #FFFFFF at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#302BBB
RGBrgb(48, 43, 187)
HSLhsl(242, 63%, 45%)
HSVhsv(242, 77%, 73%)
CMYKcmyk(74.3%, 77%, 0%, 26.7%)
CIE-LABlab(29.27, 48.91, -73.71)
CIE-LCHlch(29.27, 88.46, 303.56°)
OKLaboklab(41.14% 0.0121 -0.2133)
OKLCHoklch(41.14% 0.214 273.2)
XYZxyz(11.0494, 5.9428, 47.5688)
Luminance0.0594 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302BBB #B6BB2B
analogous
#2B6EBB #302BBB #782BBB
triadic
#302BBB #BB302B #2BBB30
tetradic
#302BBB #BB2B6E #B6BB2B #2BBB78
square
#302BBB #BB2B6E #B6BB2B #2BBB78
split-complementary
#302BBB #BB782B #6EBB2B
monochromatic
#161457 #232089 #302BBB #524DD6 #827FE2

Accessibility & contrast

On white

9.59
#302BBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #302BBB
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302BBB#FFFFFF#000000##FFFFFF
##302BBB1.009.592.199.59
#FFFFFF9.591.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CBF
Deuteranopia (green-blind)
#003EB8
Tritanopia (blue-blind)
#005672
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #302bbb;
/* rgb */ color: rgb(48, 43, 187);
/* oklch */ color: oklch(41.1% 0.214 273.2);
Tailwind
colors: {
  custom: {
    50: '#7f67d1',
    500: '#302bbb',
    950: '#000000',
  },
}
SCSS
$custom: #302bbb;
$custom-light: #7f67d1;
$custom-dark: #000000;
JSON
{
  "hex": "#302bbb",
  "rgb": {
    "r": 48,
    "g": 43,
    "b": 187
  },
  "hsl": {
    "h": 242.083,
    "s": 62.609,
    "l": 45.098
  },
  "oklch": {
    "l": 0.41138,
    "c": 0.21362,
    "h": 273.2
  },
  "luminance": 0.05944
}

Semantic roles & 50–950 ramp

primary
#302BBB
secondary
#C7CA78
accent
#E642E0
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #302BBB

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

Preview Lab → · Contrast checker → · Palette generator →

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