#302DBA#302DBA

#302DBA is a dark, highly saturated blue. Relative luminance 0.060; OKLCH L 41.3% C 0.211 H 273.1°. Best body text is #FFFFFF at 9.50:1 contrast (WCAG AA passes).

Color values

HEX#302DBA
RGBrgb(48, 45, 186)
HSLhsl(241, 61%, 45%)
HSVhsv(241, 76%, 73%)
CMYKcmyk(74.2%, 75.8%, 0%, 27.1%)
CIE-LABlab(29.54, 47.51, -72.67)
CIE-LCHlch(29.54, 86.83, 303.18°)
OKLaboklab(41.3% 0.0114 -0.2103)
OKLCHoklch(41.3% 0.211 273.1)
XYZxyz(11.0173, 6.0492, 47.0318)
Luminance0.0605 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302DBA #B7BA2D
analogous
#2D70BA #302DBA #772DBA
triadic
#302DBA #BA302D #2DBA30
tetradic
#302DBA #BA2D70 #B7BA2D #2DBA77
square
#302DBA #BA2D70 #B7BA2D #2DBA77
split-complementary
#302DBA #BA772D #70BA2D
monochromatic
#171557 #232189 #302DBA #5250D5 #8381E0

Accessibility & contrast

On white

9.50
#302DBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#302DBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302DBA
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302DBA#FFFFFF#000000##FFFFFF
##302DBA1.009.502.219.50
#FFFFFF9.501.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CBE
Deuteranopia (green-blind)
#003FB8
Tritanopia (blue-blind)
#005772
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #302dba;
/* rgb */ color: rgb(48, 45, 186);
/* oklch */ color: oklch(41.3% 0.211 273.1);
Tailwind
colors: {
  custom: {
    50: '#7f68d0',
    500: '#302dba',
    950: '#000000',
  },
}
SCSS
$custom: #302dba;
$custom-light: #7f68d0;
$custom-dark: #000000;
JSON
{
  "hex": "#302dba",
  "rgb": {
    "r": 48,
    "g": 45,
    "b": 186
  },
  "hsl": {
    "h": 241.277,
    "s": 61.039,
    "l": 45.294
  },
  "oklch": {
    "l": 0.41295,
    "c": 0.2106,
    "h": 273.1
  },
  "luminance": 0.0605
}

Semantic roles & 50–950 ramp

primary
#302DBA
secondary
#C8C979
accent
#E444E1
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #302DBA

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

Preview Lab → · Contrast checker → · Palette generator →

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