#302FB7#302FB7

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

Color values

HEX#302FB7
RGBrgb(48, 47, 183)
HSLhsl(240, 59%, 45%)
HSVhsv(240, 74%, 72%)
CMYKcmyk(73.8%, 74.3%, 0%, 28.2%)
CIE-LABlab(29.61, 45.42, -70.77)
CIE-LCHlch(29.61, 84.09, 302.69°)
OKLaboklab(41.26% 0.0111 -0.2048)
OKLCHoklch(41.26% 0.205 273.1)
XYZxyz(10.7798, 6.0792, 45.3959)
Luminance0.0608 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302FB7 #B6B72F
analogous
#2F72B7 #302FB7 #742FB7
triadic
#302FB7 #B7302F #2FB730
tetradic
#302FB7 #B72F72 #B6B72F #2FB774
square
#302FB7 #B72F72 #B6B72F #2FB774
split-complementary
#302FB7 #B7742F #72B72F
monochromatic
#161656 #232286 #302FB7 #5251D2 #8282DF

Accessibility & contrast

On white

9.48
#302FB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #302FB7
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302FB7#FFFFFF#000000##FFFFFF
##302FB71.009.482.229.48
#FFFFFF9.481.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CBB
Deuteranopia (green-blind)
#003FB5
Tritanopia (blue-blind)
#005671
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #302fb7;
/* rgb */ color: rgb(48, 47, 183);
/* oklch */ color: oklch(41.3% 0.205 273.1);
Tailwind
colors: {
  custom: {
    50: '#7e69ce',
    500: '#302fb7',
    950: '#000000',
  },
}
SCSS
$custom: #302fb7;
$custom-light: #7e69ce;
$custom-dark: #000000;
JSON
{
  "hex": "#302fb7",
  "rgb": {
    "r": 48,
    "g": 47,
    "b": 183
  },
  "hsl": {
    "h": 240.441,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.41255,
    "c": 0.20507,
    "h": 273.1
  },
  "luminance": 0.0608
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #302FB7

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

Preview Lab → · Contrast checker → · Palette generator →

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