#302ABB#302ABB

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

Color values

HEX#302ABB
RGBrgb(48, 42, 187)
HSLhsl(242, 63%, 45%)
HSVhsv(242, 78%, 73%)
CMYKcmyk(74.3%, 77.5%, 0%, 26.7%)
CIE-LABlab(29.08, 49.43, -74.01)
CIE-LCHlch(29.08, 89.00, 303.74°)
OKLaboklab(41.01% 0.0124 -0.2141)
OKLCHoklch(41.01% 0.215 273.3)
XYZxyz(11.0135, 5.8710, 47.5569)
Luminance0.0587 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302ABB #B5BB2A
analogous
#2A6CBB #302ABB #792ABB
triadic
#302ABB #BB302A #2ABB30
tetradic
#302ABB #BB2A6C #B5BB2A #2ABB79
square
#302ABB #BB2A6C #B5BB2A #2ABB79
split-complementary
#302ABB #BB792A #6CBB2A
monochromatic
#161457 #231F89 #302ABB #514CD7 #827DE2

Accessibility & contrast

On white

9.66
#302ABB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #302ABB
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302ABB#FFFFFF#000000##FFFFFF
##302ABB1.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BBF
Deuteranopia (green-blind)
#003DB8
Tritanopia (blue-blind)
#005672
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #302abb;
/* rgb */ color: rgb(48, 42, 187);
/* oklch */ color: oklch(41.0% 0.215 273.3);
Tailwind
colors: {
  custom: {
    50: '#7f66d1',
    500: '#302abb',
    950: '#000000',
  },
}
SCSS
$custom: #302abb;
$custom-light: #7f66d1;
$custom-dark: #000000;
JSON
{
  "hex": "#302abb",
  "rgb": {
    "r": 48,
    "g": 42,
    "b": 187
  },
  "hsl": {
    "h": 242.483,
    "s": 63.319,
    "l": 44.902
  },
  "oklch": {
    "l": 0.41009,
    "c": 0.21451,
    "h": 273.3
  },
  "luminance": 0.05872
}

Semantic roles & 50–950 ramp

primary
#302ABB
secondary
#C7CA76
accent
#E641E0
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #302ABB

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

Preview Lab → · Contrast checker → · Palette generator →

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