#302BB3#302BB3

#302BB3 is a dark, highly saturated blue. Relative luminance 0.056; OKLCH L 40.3% C 0.204 H 273.9°. Best body text is #FFFFFF at 9.90:1 contrast (WCAG AA passes).

Color values

HEX#302BB3
RGBrgb(48, 43, 179)
HSLhsl(242, 61%, 44%)
HSVhsv(242, 76%, 70%)
CMYKcmyk(73.2%, 76%, 0%, 29.8%)
CIE-LABlab(28.41, 46.33, -70.38)
CIE-LCHlch(28.41, 84.26, 303.36°)
OKLaboklab(40.28% 0.0137 -0.2036)
OKLCHoklch(40.28% 0.204 273.9)
XYZxyz(10.2168, 5.6098, 43.1834)
Luminance0.0561 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302BB3 #AEB32B
analogous
#2B6AB3 #302BB3 #742BB3
triadic
#302BB3 #B3302B #2BB330
tetradic
#302BB3 #B32B6A #AEB32B #2BB374
square
#302BB3 #B32B6A #AEB32B #2BB374
split-complementary
#302BB3 #B3742B #6AB32B
monochromatic
#161350 #231F82 #302BB3 #4D48D3 #7D79DF

Accessibility & contrast

On white

9.90
#302BB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#302BB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302BB3
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302BB3#FFFFFF#000000##FFFFFF
##302BB31.009.902.129.90
#FFFFFF9.901.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B7
Deuteranopia (green-blind)
#003CB1
Tritanopia (blue-blind)
#00536D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #302bb3;
/* rgb */ color: rgb(48, 43, 179);
/* oklch */ color: oklch(40.3% 0.204 273.9);
Tailwind
colors: {
  custom: {
    50: '#7d67cb',
    500: '#302bb3',
    950: '#000000',
  },
}
SCSS
$custom: #302bb3;
$custom-light: #7d67cb;
$custom-dark: #000000;
JSON
{
  "hex": "#302bb3",
  "rgb": {
    "r": 48,
    "g": 43,
    "b": 179
  },
  "hsl": {
    "h": 242.206,
    "s": 61.261,
    "l": 43.529
  },
  "oklch": {
    "l": 0.40276,
    "c": 0.20407,
    "h": 273.9
  },
  "luminance": 0.05611
}

Semantic roles & 50–950 ramp

primary
#302BB3
secondary
#C4C773
accent
#E443DE
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #302BB3

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

Preview Lab → · Contrast checker → · Palette generator →

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