#302BB9#302BB9

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

Color values

HEX#302BB9
RGBrgb(48, 43, 185)
HSLhsl(242, 62%, 45%)
HSVhsv(242, 77%, 73%)
CMYKcmyk(74.1%, 76.8%, 0%, 27.5%)
CIE-LABlab(29.05, 48.27, -72.88)
CIE-LCHlch(29.05, 87.42, 303.51°)
OKLaboklab(40.92% 0.0125 -0.2109)
OKLCHoklch(40.92% 0.211 273.4)
XYZxyz(10.8368, 5.8578, 46.4491)
Luminance0.0586 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302BB9 #B4B92B
analogous
#2B6DB9 #302BB9 #772BB9
triadic
#302BB9 #B9302B #2BB930
tetradic
#302BB9 #B92B6D #B4B92B #2BB977
square
#302BB9 #B92B6D #B4B92B #2BB977
split-complementary
#302BB9 #B9772B #6DB92B
monochromatic
#161456 #231F87 #302BB9 #514CD5 #817EE1

Accessibility & contrast

On white

9.67
#302BB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#302BB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302BB9
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302BB9#FFFFFF#000000##FFFFFF
##302BB91.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BBD
Deuteranopia (green-blind)
#003EB7
Tritanopia (blue-blind)
#005571
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #302bb9;
/* rgb */ color: rgb(48, 43, 185);
/* oklch */ color: oklch(40.9% 0.211 273.4);
Tailwind
colors: {
  custom: {
    50: '#7f67cf',
    500: '#302bb9',
    950: '#000000',
  },
}
SCSS
$custom: #302bb9;
$custom-light: #7f67cf;
$custom-dark: #000000;
JSON
{
  "hex": "#302bb9",
  "rgb": {
    "r": 48,
    "g": 43,
    "b": 185
  },
  "hsl": {
    "h": 242.113,
    "s": 62.281,
    "l": 44.706
  },
  "oklch": {
    "l": 0.40921,
    "c": 0.21125,
    "h": 273.4
  },
  "luminance": 0.05859
}

Semantic roles & 50–950 ramp

primary
#302BB9
secondary
#C6C976
accent
#E542E0
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #302BB9

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

Preview Lab → · Contrast checker → · Palette generator →

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