#302FB3#302FB3

#302FB3 is a dark, highly saturated blue. Relative luminance 0.059; OKLCH L 40.8% C 0.200 H 273.4°. Best body text is #FFFFFF at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#302FB3
RGBrgb(48, 47, 179)
HSLhsl(240, 58%, 44%)
HSVhsv(240, 74%, 70%)
CMYKcmyk(73.2%, 73.7%, 0%, 29.8%)
CIE-LABlab(29.20, 44.10, -69.07)
CIE-LCHlch(29.20, 81.95, 302.56°)
OKLaboklab(40.84% 0.0118 -0.1998)
OKLCHoklch(40.84% 0.2 273.4)
XYZxyz(10.3694, 5.9150, 43.2343)
Luminance0.0592 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302FB3 #B2B32F
analogous
#2F70B3 #302FB3 #722FB3
triadic
#302FB3 #B3302F #2FB330
tetradic
#302FB3 #B32F70 #B2B32F #2FB372
square
#302FB3 #B32F70 #B2B32F #2FB372
split-complementary
#302FB3 #B3722F #70B32F
monochromatic
#161652 #232283 #302FB3 #504FD1 #807FDD

Accessibility & contrast

On white

9.62
#302FB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#302FB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302FB3
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302FB3#FFFFFF#000000##FFFFFF
##302FB31.009.622.189.62
#FFFFFF9.621.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB7
Deuteranopia (green-blind)
#003EB1
Tritanopia (blue-blind)
#00556E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #302fb3;
/* rgb */ color: rgb(48, 47, 179);
/* oklch */ color: oklch(40.8% 0.200 273.4);
Tailwind
colors: {
  custom: {
    50: '#7d69cb',
    500: '#302fb3',
    950: '#000000',
  },
}
SCSS
$custom: #302fb3;
$custom-light: #7d69cb;
$custom-dark: #000000;
JSON
{
  "hex": "#302fb3",
  "rgb": {
    "r": 48,
    "g": 47,
    "b": 179
  },
  "hsl": {
    "h": 240.455,
    "s": 58.407,
    "l": 44.314
  },
  "oklch": {
    "l": 0.40837,
    "c": 0.20018,
    "h": 273.4
  },
  "luminance": 0.05916
}

Semantic roles & 50–950 ramp

primary
#302FB3
secondary
#C6C678
accent
#E246E0
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #302FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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