#302FBA#302FBA

#302FBA is a dark, highly saturated blue. Relative luminance 0.062; OKLCH L 41.6% C 0.209 H 272.9°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#302FBA
RGBrgb(48, 47, 186)
HSLhsl(240, 60%, 46%)
HSVhsv(240, 75%, 73%)
CMYKcmyk(74.2%, 74.7%, 0%, 27.1%)
CIE-LABlab(29.92, 46.41, -72.03)
CIE-LCHlch(29.92, 85.69, 302.80°)
OKLaboklab(41.57% 0.0105 -0.2084)
OKLCHoklch(41.57% 0.209 272.9)
XYZxyz(11.0954, 6.2054, 47.0579)
Luminance0.0621 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302FBA #B9BA2F
analogous
#2F73BA #302FBA #762FBA
triadic
#302FBA #BA302F #2FBA30
tetradic
#302FBA #BA2F73 #B9BA2F #2FBA76
square
#302FBA #BA2F73 #B9BA2F #2FBA76
split-complementary
#302FBA #BA762F #73BA2F
monochromatic
#171658 #232389 #302FBA #5453D3 #8484E0

Accessibility & contrast

On white

9.37
#302FBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#302FBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302FBA
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302FBA#FFFFFF#000000##FFFFFF
##302FBA1.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DBE
Deuteranopia (green-blind)
#0040B8
Tritanopia (blue-blind)
#005872
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #302fba;
/* rgb */ color: rgb(48, 47, 186);
/* oklch */ color: oklch(41.6% 0.209 272.9);
Tailwind
colors: {
  custom: {
    50: '#7e69d0',
    500: '#302fba',
    950: '#000000',
  },
}
SCSS
$custom: #302fba;
$custom-light: #7e69d0;
$custom-dark: #000000;
JSON
{
  "hex": "#302fba",
  "rgb": {
    "r": 48,
    "g": 47,
    "b": 186
  },
  "hsl": {
    "h": 240.432,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.4157,
    "c": 0.20871,
    "h": 272.9
  },
  "luminance": 0.06207
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #302FBA

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

Preview Lab → · Contrast checker → · Palette generator →

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