#302AB8#302AB8

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

Color values

HEX#302AB8
RGBrgb(48, 42, 184)
HSLhsl(243, 63%, 44%)
HSVhsv(243, 77%, 72%)
CMYKcmyk(73.9%, 77.2%, 0%, 27.8%)
CIE-LABlab(28.76, 48.48, -72.78)
CIE-LCHlch(28.76, 87.44, 303.67°)
OKLaboklab(40.68% 0.0131 -0.2106)
OKLCHoklch(40.68% 0.211 273.6)
XYZxyz(10.6957, 5.7439, 45.8831)
Luminance0.0575 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302AB8 #B2B82A
analogous
#2A6BB8 #302AB8 #772AB8
triadic
#302AB8 #B8302A #2AB830
tetradic
#302AB8 #B82A6B #B2B82A #2AB877
square
#302AB8 #B82A6B #B2B82A #2AB877
split-complementary
#302AB8 #B8772A #6BB82A
monochromatic
#161354 #231F86 #302AB8 #504AD6 #807BE1

Accessibility & contrast

On white

9.77
#302AB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#302AB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302AB8
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302AB8#FFFFFF#000000##FFFFFF
##302AB81.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #302ab8;
/* rgb */ color: rgb(48, 42, 184);
/* oklch */ color: oklch(40.7% 0.211 273.6);
Tailwind
colors: {
  custom: {
    50: '#7e66cf',
    500: '#302ab8',
    950: '#000000',
  },
}
SCSS
$custom: #302ab8;
$custom-light: #7e66cf;
$custom-dark: #000000;
JSON
{
  "hex": "#302ab8",
  "rgb": {
    "r": 48,
    "g": 42,
    "b": 184
  },
  "hsl": {
    "h": 242.535,
    "s": 62.832,
    "l": 44.314
  },
  "oklch": {
    "l": 0.40683,
    "c": 0.21097,
    "h": 273.6
  },
  "luminance": 0.05745
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #302AB8

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

Preview Lab → · Contrast checker → · Palette generator →

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