#302FBB#302FBB

#302FBB is a dark, highly saturated blue. Relative luminance 0.062; OKLCH L 41.7% C 0.210 H 272.8°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#302FBB
RGBrgb(48, 47, 187)
HSLhsl(240, 60%, 46%)
HSVhsv(240, 75%, 73%)
CMYKcmyk(74.3%, 74.9%, 0%, 26.7%)
CIE-LABlab(30.03, 46.74, -72.45)
CIE-LCHlch(30.03, 86.22, 302.83°)
OKLaboklab(41.68% 0.0104 -0.2097)
OKLCHoklch(41.68% 0.21 272.8)
XYZxyz(11.2021, 6.2481, 47.6197)
Luminance0.0625 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302FBB #BABB2F
analogous
#2F74BB #302FBB #762FBB
triadic
#302FBB #BB302F #2FBB30
tetradic
#302FBB #BB2F74 #BABB2F #2FBB76
square
#302FBB #BB2F74 #BABB2F #2FBB76
split-complementary
#302FBB #BB762F #74BB2F
monochromatic
#171659 #23238A #302FBB #5453D4 #8584E0

Accessibility & contrast

On white

9.33
#302FBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#302FBB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302FBB
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302FBB#FFFFFF#000000##FFFFFF
##302FBB1.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DBF
Deuteranopia (green-blind)
#0040B9
Tritanopia (blue-blind)
#005873
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #302fbb;
/* rgb */ color: rgb(48, 47, 187);
/* oklch */ color: oklch(41.7% 0.210 272.8);
Tailwind
colors: {
  custom: {
    50: '#7f69d1',
    500: '#302fbb',
    950: '#000000',
  },
}
SCSS
$custom: #302fbb;
$custom-light: #7f69d1;
$custom-dark: #000000;
JSON
{
  "hex": "#302fbb",
  "rgb": {
    "r": 48,
    "g": 47,
    "b": 187
  },
  "hsl": {
    "h": 240.429,
    "s": 59.829,
    "l": 45.882
  },
  "oklch": {
    "l": 0.41676,
    "c": 0.20992,
    "h": 272.8
  },
  "luminance": 0.06249
}

Semantic roles & 50–950 ramp

primary
#302FBB
secondary
#C9C97C
accent
#E345E2
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #302FBB

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

Preview Lab → · Contrast checker → · Palette generator →

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