#302FB8#302FB8

#302FB8 is a dark, highly saturated blue. Relative luminance 0.061; OKLCH L 41.4% C 0.206 H 273.0°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#302FB8
RGBrgb(48, 47, 184)
HSLhsl(240, 59%, 45%)
HSVhsv(240, 74%, 72%)
CMYKcmyk(73.9%, 74.5%, 0%, 27.8%)
CIE-LABlab(29.72, 45.75, -71.19)
CIE-LCHlch(29.72, 84.63, 302.73°)
OKLaboklab(41.36% 0.0109 -0.206)
OKLCHoklch(41.36% 0.206 273)
XYZxyz(10.8843, 6.1210, 45.9460)
Luminance0.0612 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302FB8 #B7B82F
analogous
#2F72B8 #302FB8 #742FB8
triadic
#302FB8 #B8302F #2FB830
tetradic
#302FB8 #B82F72 #B7B82F #2FB874
square
#302FB8 #B82F72 #B7B82F #2FB874
split-complementary
#302FB8 #B8742F #72B82F
monochromatic
#171657 #232387 #302FB8 #5252D3 #8382DF

Accessibility & contrast

On white

9.44
#302FB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #302FB8
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302FB8#FFFFFF#000000##FFFFFF
##302FB81.009.442.229.44
#FFFFFF9.441.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #302fb8;
/* rgb */ color: rgb(48, 47, 184);
/* oklch */ color: oklch(41.4% 0.206 273.0);
Tailwind
colors: {
  custom: {
    50: '#7e69cf',
    500: '#302fb8',
    950: '#000000',
  },
}
SCSS
$custom: #302fb8;
$custom-light: #7e69cf;
$custom-dark: #000000;
JSON
{
  "hex": "#302fb8",
  "rgb": {
    "r": 48,
    "g": 47,
    "b": 184
  },
  "hsl": {
    "h": 240.438,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.4136,
    "c": 0.20629,
    "h": 273
  },
  "luminance": 0.06122
}

Semantic roles & 50–950 ramp

primary
#302FB8
secondary
#C8C87B
accent
#E245E1
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #302FB8

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

Preview Lab → · Contrast checker → · Palette generator →

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