#302CBA#302CBA

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

Color values

HEX#302CBA
RGBrgb(48, 44, 186)
HSLhsl(242, 62%, 45%)
HSVhsv(242, 76%, 73%)
CMYKcmyk(74.2%, 76.3%, 0%, 27.1%)
CIE-LABlab(29.35, 48.05, -72.99)
CIE-LCHlch(29.35, 87.39, 303.36°)
OKLaboklab(41.16% 0.0119 -0.2112)
OKLCHoklch(41.16% 0.212 273.2)
XYZxyz(10.9796, 5.9738, 47.0193)
Luminance0.0597 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302CBA #B6BA2C
analogous
#2C6FBA #302CBA #772CBA
triadic
#302CBA #BA302C #2CBA30
tetradic
#302CBA #BA2C6F #B6BA2C #2CBA77
square
#302CBA #BA2C6F #B6BA2C #2CBA77
split-complementary
#302CBA #BA772C #6FBA2C
monochromatic
#161557 #232089 #302CBA #524ED5 #8280E1

Accessibility & contrast

On white

9.57
#302CBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #302CBA
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302CBA#FFFFFF#000000##FFFFFF
##302CBA1.009.572.199.57
#FFFFFF9.571.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.571.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #302cba;
/* rgb */ color: rgb(48, 44, 186);
/* oklch */ color: oklch(41.2% 0.212 273.2);
Tailwind
colors: {
  custom: {
    50: '#7f68d0',
    500: '#302cba',
    950: '#000000',
  },
}
SCSS
$custom: #302cba;
$custom-light: #7f68d0;
$custom-dark: #000000;
JSON
{
  "hex": "#302cba",
  "rgb": {
    "r": 48,
    "g": 44,
    "b": 186
  },
  "hsl": {
    "h": 241.69,
    "s": 61.739,
    "l": 45.098
  },
  "oklch": {
    "l": 0.41161,
    "c": 0.21152,
    "h": 273.2
  },
  "luminance": 0.05975
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #302CBA

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

Preview Lab → · Contrast checker → · Palette generator →

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