#302FBD#302FBD

#302FBD is a dark, highly saturated blue. Relative luminance 0.063; OKLCH L 41.9% C 0.212 H 272.7°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#302FBD
RGBrgb(48, 47, 189)
HSLhsl(240, 60%, 46%)
HSVhsv(240, 75%, 74%)
CMYKcmyk(74.6%, 75.1%, 0%, 25.9%)
CIE-LABlab(30.24, 47.39, -73.28)
CIE-LCHlch(30.24, 87.27, 302.89°)
OKLaboklab(41.89% 0.01 -0.2121)
OKLCHoklch(41.89% 0.212 272.7)
XYZxyz(11.4177, 6.3343, 48.7552)
Luminance0.0634 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302FBD #BCBD2F
analogous
#2F75BD #302FBD #772FBD
triadic
#302FBD #BD302F #2FBD30
tetradic
#302FBD #BD2F75 #BCBD2F #2FBD77
square
#302FBD #BD2F75 #BCBD2F #2FBD77
split-complementary
#302FBD #BD772F #75BD2F
monochromatic
#17175B #24238C #302FBD #5555D5 #8686E1

Accessibility & contrast

On white

9.26
#302FBD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#302FBD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302FBD
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302FBD#FFFFFF#000000##FFFFFF
##302FBD1.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EC1
Deuteranopia (green-blind)
#0040BA
Tritanopia (blue-blind)
#005974
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #302fbd;
/* rgb */ color: rgb(48, 47, 189);
/* oklch */ color: oklch(41.9% 0.212 272.7);
Tailwind
colors: {
  custom: {
    50: '#7f6ad2',
    500: '#302fbd',
    950: '#000000',
  },
}
SCSS
$custom: #302fbd;
$custom-light: #7f6ad2;
$custom-dark: #000000;
JSON
{
  "hex": "#302fbd",
  "rgb": {
    "r": 48,
    "g": 47,
    "b": 189
  },
  "hsl": {
    "h": 240.423,
    "s": 60.169,
    "l": 46.275
  },
  "oklch": {
    "l": 0.41887,
    "c": 0.21231,
    "h": 272.7
  },
  "luminance": 0.06336
}

Semantic roles & 50–950 ramp

primary
#302FBD
secondary
#CACA7E
accent
#E344E2
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #302FBD

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

Preview Lab → · Contrast checker → · Palette generator →

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