#302EB9#302EB9

#302EB9 is a dark, highly saturated blue. Relative luminance 0.061; OKLCH L 41.3% C 0.208 H 273.1°. Best body text is #FFFFFF at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#302EB9
RGBrgb(48, 46, 185)
HSLhsl(241, 60%, 45%)
HSVhsv(241, 75%, 73%)
CMYKcmyk(74.1%, 75.1%, 0%, 27.5%)
CIE-LABlab(29.62, 46.64, -71.94)
CIE-LCHlch(29.62, 85.73, 302.96°)
OKLaboklab(41.33% 0.0112 -0.2082)
OKLCHoklch(41.33% 0.208 273.1)
XYZxyz(10.9499, 6.0840, 46.4868)
Luminance0.0609 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302EB9 #B7B92E
analogous
#2E72B9 #302EB9 #752EB9
triadic
#302EB9 #B9302E #2EB930
tetradic
#302EB9 #B92E72 #B7B92E #2EB975
square
#302EB9 #B92E72 #B7B92E #2EB975
split-complementary
#302EB9 #B9752E #72B92E
monochromatic
#171657 #232288 #302EB9 #5251D4 #8382E0

Accessibility & contrast

On white

9.47
#302EB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#302EB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302EB9
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302EB9#FFFFFF#000000##FFFFFF
##302EB91.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CBD
Deuteranopia (green-blind)
#003FB7
Tritanopia (blue-blind)
#005771
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #302eb9;
/* rgb */ color: rgb(48, 46, 185);
/* oklch */ color: oklch(41.3% 0.208 273.1);
Tailwind
colors: {
  custom: {
    50: '#7e69cf',
    500: '#302eb9',
    950: '#000000',
  },
}
SCSS
$custom: #302eb9;
$custom-light: #7e69cf;
$custom-dark: #000000;
JSON
{
  "hex": "#302eb9",
  "rgb": {
    "r": 48,
    "g": 46,
    "b": 185
  },
  "hsl": {
    "h": 240.863,
    "s": 60.173,
    "l": 45.294
  },
  "oklch": {
    "l": 0.41325,
    "c": 0.20846,
    "h": 273.1
  },
  "luminance": 0.06085
}

Semantic roles & 50–950 ramp

primary
#302EB9
secondary
#C8C97A
accent
#E344E1
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #302EB9

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

Preview Lab → · Contrast checker → · Palette generator →

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