#302CB8#302CB8

#302CB8 is a dark, highly saturated blue. Relative luminance 0.059; OKLCH L 40.9% C 0.209 H 273.4°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#302CB8
RGBrgb(48, 44, 184)
HSLhsl(242, 61%, 45%)
HSVhsv(242, 76%, 72%)
CMYKcmyk(73.9%, 76.1%, 0%, 27.8%)
CIE-LABlab(29.13, 47.41, -72.16)
CIE-LCHlch(29.13, 86.34, 303.31°)
OKLaboklab(40.95% 0.0123 -0.2088)
OKLCHoklch(40.95% 0.209 273.4)
XYZxyz(10.7684, 5.8893, 45.9073)
Luminance0.0589 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302CB8 #B4B82C
analogous
#2C6EB8 #302CB8 #762CB8
triadic
#302CB8 #B8302C #2CB830
tetradic
#302CB8 #B82C6E #B4B82C #2CB876
square
#302CB8 #B82C6E #B4B82C #2CB876
split-complementary
#302CB8 #B8762C #6EB82C
monochromatic
#161455 #232087 #302CB8 #514DD4 #817EE0

Accessibility & contrast

On white

9.64
#302CB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#302CB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302CB8
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302CB8#FFFFFF#000000##FFFFFF
##302CB81.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BBC
Deuteranopia (green-blind)
#003EB6
Tritanopia (blue-blind)
#005570
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #302cb8;
/* rgb */ color: rgb(48, 44, 184);
/* oklch */ color: oklch(40.9% 0.209 273.4);
Tailwind
colors: {
  custom: {
    50: '#7e68cf',
    500: '#302cb8',
    950: '#000000',
  },
}
SCSS
$custom: #302cb8;
$custom-light: #7e68cf;
$custom-dark: #000000;
JSON
{
  "hex": "#302cb8",
  "rgb": {
    "r": 48,
    "g": 44,
    "b": 184
  },
  "hsl": {
    "h": 241.714,
    "s": 61.404,
    "l": 44.706
  },
  "oklch": {
    "l": 0.40946,
    "c": 0.20914,
    "h": 273.4
  },
  "luminance": 0.0589
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #302CB8

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

Preview Lab → · Contrast checker → · Palette generator →

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