#302FB1#302FB1

#302FB1 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.6% C 0.198 H 273.5°. Best body text is #FFFFFF at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#302FB1
RGBrgb(48, 47, 177)
HSLhsl(240, 58%, 44%)
HSVhsv(240, 73%, 69%)
CMYKcmyk(72.9%, 73.4%, 0%, 30.6%)
CIE-LABlab(28.99, 43.43, -68.22)
CIE-LCHlch(28.99, 80.87, 302.48°)
OKLaboklab(40.63% 0.0122 -0.1973)
OKLCHoklch(40.63% 0.198 273.5)
XYZxyz(10.1686, 5.8347, 42.1768)
Luminance0.0584 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302FB1 #B0B12F
analogous
#2F6FB1 #302FB1 #712FB1
triadic
#302FB1 #B1302F #2FB130
tetradic
#302FB1 #B12F6F #B0B12F #2FB171
square
#302FB1 #B12F6F #B0B12F #2FB171
split-complementary
#302FB1 #B1712F #6FB12F
monochromatic
#161550 #232281 #302FB1 #4E4DD0 #7E7EDD

Accessibility & contrast

On white

9.69
#302FB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #302FB1
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302FB1#FFFFFF#000000##FFFFFF
##302FB11.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB5
Deuteranopia (green-blind)
#003EAF
Tritanopia (blue-blind)
#00546D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #302fb1;
/* rgb */ color: rgb(48, 47, 177);
/* oklch */ color: oklch(40.6% 0.198 273.5);
Tailwind
colors: {
  custom: {
    50: '#7c69ca',
    500: '#302fb1',
    950: '#000000',
  },
}
SCSS
$custom: #302fb1;
$custom-light: #7c69ca;
$custom-dark: #000000;
JSON
{
  "hex": "#302fb1",
  "rgb": {
    "r": 48,
    "g": 47,
    "b": 177
  },
  "hsl": {
    "h": 240.462,
    "s": 58.036,
    "l": 43.922
  },
  "oklch": {
    "l": 0.40629,
    "c": 0.19772,
    "h": 273.5
  },
  "luminance": 0.05836
}

Semantic roles & 50–950 ramp

primary
#302FB1
secondary
#C5C576
accent
#E147E0
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #302FB1

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

Preview Lab → · Contrast checker → · Palette generator →

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