#302BB5#302BB5

#302BB5 is a dark, highly saturated blue. Relative luminance 0.057; OKLCH L 40.5% C 0.206 H 273.7°. Best body text is #FFFFFF at 9.82:1 contrast (WCAG AA passes).

Color values

HEX#302BB5
RGBrgb(48, 43, 181)
HSLhsl(242, 62%, 44%)
HSVhsv(242, 76%, 71%)
CMYKcmyk(73.5%, 76.2%, 0%, 29%)
CIE-LABlab(28.62, 46.98, -71.22)
CIE-LCHlch(28.62, 85.32, 303.41°)
OKLaboklab(40.49% 0.0133 -0.206)
OKLCHoklch(40.49% 0.206 273.7)
XYZxyz(10.4205, 5.6913, 44.2565)
Luminance0.0569 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302BB5 #B0B52B
analogous
#2B6BB5 #302BB5 #752BB5
triadic
#302BB5 #B5302B #2BB530
tetradic
#302BB5 #B52B6B #B0B52B #2BB575
square
#302BB5 #B52B6B #B0B52B #2BB575
split-complementary
#302BB5 #B5752B #6BB52B
monochromatic
#161452 #231F84 #302BB5 #4E49D4 #7E7BE0

Accessibility & contrast

On white

9.82
#302BB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#302BB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302BB5
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302BB5#FFFFFF#000000##FFFFFF
##302BB51.009.822.149.82
#FFFFFF9.821.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB9
Deuteranopia (green-blind)
#003DB3
Tritanopia (blue-blind)
#00546E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #302bb5;
/* rgb */ color: rgb(48, 43, 181);
/* oklch */ color: oklch(40.5% 0.206 273.7);
Tailwind
colors: {
  custom: {
    50: '#7e67cd',
    500: '#302bb5',
    950: '#000000',
  },
}
SCSS
$custom: #302bb5;
$custom-light: #7e67cd;
$custom-dark: #000000;
JSON
{
  "hex": "#302bb5",
  "rgb": {
    "r": 48,
    "g": 43,
    "b": 181
  },
  "hsl": {
    "h": 242.174,
    "s": 61.607,
    "l": 43.922
  },
  "oklch": {
    "l": 0.4049,
    "c": 0.20647,
    "h": 273.7
  },
  "luminance": 0.05692
}

Semantic roles & 50–950 ramp

primary
#302BB5
secondary
#C5C874
accent
#E543DF
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #302BB5

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

Preview Lab → · Contrast checker → · Palette generator →

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