#302FBC#302FBC

#302FBC is a dark, highly saturated blue. Relative luminance 0.063; OKLCH L 41.8% C 0.211 H 272.8°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#302FBC
RGBrgb(48, 47, 188)
HSLhsl(240, 60%, 46%)
HSVhsv(240, 75%, 74%)
CMYKcmyk(74.5%, 75%, 0%, 26.3%)
CIE-LABlab(30.14, 47.07, -72.87)
CIE-LCHlch(30.14, 86.75, 302.86°)
OKLaboklab(41.78% 0.0102 -0.2109)
OKLCHoklch(41.78% 0.211 272.8)
XYZxyz(11.3095, 6.2911, 48.1855)
Luminance0.0629 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302FBC #BBBC2F
analogous
#2F74BC #302FBC #762FBC
triadic
#302FBC #BC302F #2FBC30
tetradic
#302FBC #BC2F74 #BBBC2F #2FBC76
square
#302FBC #BC2F74 #BBBC2F #2FBC76
split-complementary
#302FBC #BC762F #74BC2F
monochromatic
#17175A #23238B #302FBC #5554D4 #8685E0

Accessibility & contrast

On white

9.30
#302FBC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#302FBC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302FBC
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302FBC#FFFFFF#000000##FFFFFF
##302FBC1.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #302fbc;
/* rgb */ color: rgb(48, 47, 188);
/* oklch */ color: oklch(41.8% 0.211 272.8);
Tailwind
colors: {
  custom: {
    50: '#7f6ad2',
    500: '#302fbc',
    950: '#000000',
  },
}
SCSS
$custom: #302fbc;
$custom-light: #7f6ad2;
$custom-dark: #000000;
JSON
{
  "hex": "#302fbc",
  "rgb": {
    "r": 48,
    "g": 47,
    "b": 188
  },
  "hsl": {
    "h": 240.426,
    "s": 60,
    "l": 46.078
  },
  "oklch": {
    "l": 0.41781,
    "c": 0.21112,
    "h": 272.8
  },
  "luminance": 0.06292
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #302FBC

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

Preview Lab → · Contrast checker → · Palette generator →

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