#302CB4#302CB4

#302CB4 is a dark, highly saturated blue. Relative luminance 0.057; OKLCH L 40.5% C 0.204 H 273.7°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#302CB4
RGBrgb(48, 44, 180)
HSLhsl(242, 61%, 44%)
HSVhsv(242, 76%, 71%)
CMYKcmyk(73.3%, 75.6%, 0%, 29.4%)
CIE-LABlab(28.71, 46.11, -70.48)
CIE-LCHlch(28.71, 84.23, 303.19°)
OKLaboklab(40.52% 0.0131 -0.2039)
OKLCHoklch(40.52% 0.204 273.7)
XYZxyz(10.3551, 5.7240, 43.7303)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302CB4 #B0B42C
analogous
#2C6CB4 #302CB4 #742CB4
triadic
#302CB4 #B4302C #2CB430
tetradic
#302CB4 #B42C6C #B0B42C #2CB474
square
#302CB4 #B42C6C #B0B42C #2CB474
split-complementary
#302CB4 #B4742C #6CB42C
monochromatic
#161452 #232083 #302CB4 #4E4AD3 #7E7CDF

Accessibility & contrast

On white

9.79
#302CB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#302CB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302CB4
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302CB4#FFFFFF#000000##FFFFFF
##302CB41.009.792.159.79
#FFFFFF9.791.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB8
Deuteranopia (green-blind)
#003DB2
Tritanopia (blue-blind)
#00546E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #302cb4;
/* rgb */ color: rgb(48, 44, 180);
/* oklch */ color: oklch(40.5% 0.204 273.7);
Tailwind
colors: {
  custom: {
    50: '#7d67cc',
    500: '#302cb4',
    950: '#000000',
  },
}
SCSS
$custom: #302cb4;
$custom-light: #7d67cc;
$custom-dark: #000000;
JSON
{
  "hex": "#302cb4",
  "rgb": {
    "r": 48,
    "g": 44,
    "b": 180
  },
  "hsl": {
    "h": 241.765,
    "s": 60.714,
    "l": 43.922
  },
  "oklch": {
    "l": 0.40519,
    "c": 0.20433,
    "h": 273.7
  },
  "luminance": 0.05725
}

Semantic roles & 50–950 ramp

primary
#302CB4
secondary
#C5C775
accent
#E444DF
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0B0614
muted
#7C7A82

Preview Lab

Preview with #302CB4

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

Preview Lab → · Contrast checker → · Palette generator →

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