#302BB8#302BB8

#302BB8 is a dark, highly saturated blue. Relative luminance 0.058; OKLCH L 40.8% C 0.210 H 273.5°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#302BB8
RGBrgb(48, 43, 184)
HSLhsl(242, 62%, 45%)
HSVhsv(242, 77%, 72%)
CMYKcmyk(73.9%, 76.6%, 0%, 27.8%)
CIE-LABlab(28.94, 47.95, -72.47)
CIE-LCHlch(28.94, 86.89, 303.49°)
OKLaboklab(40.81% 0.0127 -0.2097)
OKLCHoklch(40.81% 0.21 273.5)
XYZxyz(10.7316, 5.8157, 45.8951)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302BB8 #B3B82B
analogous
#2B6CB8 #302BB8 #772BB8
triadic
#302BB8 #B8302B #2BB830
tetradic
#302BB8 #B82B6C #B3B82B #2BB877
square
#302BB8 #B82B6C #B3B82B #2BB877
split-complementary
#302BB8 #B8772B #6CB82B
monochromatic
#161455 #231F86 #302BB8 #504BD5 #807DE1

Accessibility & contrast

On white

9.71
#302BB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#302BB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302BB8
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302BB8#FFFFFF#000000##FFFFFF
##302BB81.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #302bb8;
/* rgb */ color: rgb(48, 43, 184);
/* oklch */ color: oklch(40.8% 0.210 273.5);
Tailwind
colors: {
  custom: {
    50: '#7e67cf',
    500: '#302bb8',
    950: '#000000',
  },
}
SCSS
$custom: #302bb8;
$custom-light: #7e67cf;
$custom-dark: #000000;
JSON
{
  "hex": "#302bb8",
  "rgb": {
    "r": 48,
    "g": 43,
    "b": 184
  },
  "hsl": {
    "h": 242.128,
    "s": 62.115,
    "l": 44.51
  },
  "oklch": {
    "l": 0.40813,
    "c": 0.21006,
    "h": 273.5
  },
  "luminance": 0.05817
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #302BB8

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

Preview Lab → · Contrast checker → · Palette generator →

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