#302CB9#302CB9

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

Color values

HEX#302CB9
RGBrgb(48, 44, 185)
HSLhsl(242, 62%, 45%)
HSVhsv(242, 76%, 73%)
CMYKcmyk(74.1%, 76.2%, 0%, 27.5%)
CIE-LABlab(29.24, 47.73, -72.57)
CIE-LCHlch(29.24, 86.86, 303.33°)
OKLaboklab(41.05% 0.0121 -0.21)
OKLCHoklch(41.05% 0.21 273.3)
XYZxyz(10.8736, 5.9314, 46.4613)
Luminance0.0593 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302CB9 #B5B92C
analogous
#2C6FB9 #302CB9 #762CB9
triadic
#302CB9 #B9302C #2CB930
tetradic
#302CB9 #B92C6F #B5B92C #2CB976
square
#302CB9 #B92C6F #B5B92C #2CB976
split-complementary
#302CB9 #B9762C #6FB92C
monochromatic
#161456 #232088 #302CB9 #514DD5 #827FE1

Accessibility & contrast

On white

9.60
#302CB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #302CB9
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302CB9#FFFFFF#000000##FFFFFF
##302CB91.009.602.199.60
#FFFFFF9.601.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CBD
Deuteranopia (green-blind)
#003EB7
Tritanopia (blue-blind)
#005671
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #302cb9;
/* rgb */ color: rgb(48, 44, 185);
/* oklch */ color: oklch(41.1% 0.210 273.3);
Tailwind
colors: {
  custom: {
    50: '#7f68cf',
    500: '#302cb9',
    950: '#000000',
  },
}
SCSS
$custom: #302cb9;
$custom-light: #7f68cf;
$custom-dark: #000000;
JSON
{
  "hex": "#302cb9",
  "rgb": {
    "r": 48,
    "g": 44,
    "b": 185
  },
  "hsl": {
    "h": 241.702,
    "s": 61.572,
    "l": 44.902
  },
  "oklch": {
    "l": 0.41054,
    "c": 0.21034,
    "h": 273.3
  },
  "luminance": 0.05933
}

Semantic roles & 50–950 ramp

primary
#302CB9
secondary
#C7C978
accent
#E543E0
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #302CB9

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

Preview Lab → · Contrast checker → · Palette generator →

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