#302AB7#302AB7

#302AB7 is a dark, highly saturated blue. Relative luminance 0.057; OKLCH L 40.6% C 0.210 H 273.6°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#302AB7
RGBrgb(48, 42, 183)
HSLhsl(243, 63%, 44%)
HSVhsv(243, 77%, 72%)
CMYKcmyk(73.8%, 77%, 0%, 28.2%)
CIE-LABlab(28.65, 48.16, -72.36)
CIE-LCHlch(28.65, 86.92, 303.64°)
OKLaboklab(40.57% 0.0133 -0.2093)
OKLCHoklch(40.57% 0.21 273.6)
XYZxyz(10.5913, 5.7021, 45.3330)
Luminance0.0570 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302AB7 #B1B72A
analogous
#2A6BB7 #302AB7 #772AB7
triadic
#302AB7 #B7302A #2AB730
tetradic
#302AB7 #B72A6B #B1B72A #2AB777
square
#302AB7 #B72A6B #B1B72A #2AB777
split-complementary
#302AB7 #B7772A #6BB72A
monochromatic
#161353 #231F85 #302AB7 #4F49D5 #7F7BE1

Accessibility & contrast

On white

9.81
#302AB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#302AB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302AB7
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302AB7#FFFFFF#000000##FFFFFF
##302AB71.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004ABB
Deuteranopia (green-blind)
#003DB5
Tritanopia (blue-blind)
#00546F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #302ab7;
/* rgb */ color: rgb(48, 42, 183);
/* oklch */ color: oklch(40.6% 0.210 273.6);
Tailwind
colors: {
  custom: {
    50: '#7e66ce',
    500: '#302ab7',
    950: '#000000',
  },
}
SCSS
$custom: #302ab7;
$custom-light: #7e66ce;
$custom-dark: #000000;
JSON
{
  "hex": "#302ab7",
  "rgb": {
    "r": 48,
    "g": 42,
    "b": 183
  },
  "hsl": {
    "h": 242.553,
    "s": 62.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.40574,
    "c": 0.20977,
    "h": 273.6
  },
  "luminance": 0.05703
}

Semantic roles & 50–950 ramp

primary
#302AB7
secondary
#C5C974
accent
#E642DF
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #302AB7

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

Preview Lab → · Contrast checker → · Palette generator →

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