#302BB1#302BB1

#302BB1 is a dark, highly saturated blue. Relative luminance 0.055; OKLCH L 40.1% C 0.202 H 274.0°. Best body text is #FFFFFF at 9.97:1 contrast (WCAG AA passes).

Color values

HEX#302BB1
RGBrgb(48, 43, 177)
HSLhsl(242, 61%, 43%)
HSVhsv(242, 76%, 69%)
CMYKcmyk(72.9%, 75.7%, 0%, 30.6%)
CIE-LABlab(28.19, 45.68, -69.54)
CIE-LCHlch(28.19, 83.20, 303.30°)
OKLaboklab(40.06% 0.0141 -0.2011)
OKLCHoklch(40.06% 0.202 274)
XYZxyz(10.0160, 5.5295, 42.1259)
Luminance0.0553 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302BB1 #ACB12B
analogous
#2B69B1 #302BB1 #732BB1
triadic
#302BB1 #B1302B #2BB130
tetradic
#302BB1 #B12B69 #ACB12B #2BB173
square
#302BB1 #B12B69 #ACB12B #2BB173
split-complementary
#302BB1 #B1732B #69B12B
monochromatic
#15134F #231F80 #302BB1 #4C47D2 #7C78DE

Accessibility & contrast

On white

9.97
#302BB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#302BB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302BB1
9.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302BB1#FFFFFF#000000##FFFFFF
##302BB11.009.972.119.97
#FFFFFF9.971.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B5
Deuteranopia (green-blind)
#003CAF
Tritanopia (blue-blind)
#00526C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #302bb1;
/* rgb */ color: rgb(48, 43, 177);
/* oklch */ color: oklch(40.1% 0.202 274.0);
Tailwind
colors: {
  custom: {
    50: '#7d67ca',
    500: '#302bb1',
    950: '#000000',
  },
}
SCSS
$custom: #302bb1;
$custom-light: #7d67ca;
$custom-dark: #000000;
JSON
{
  "hex": "#302bb1",
  "rgb": {
    "r": 48,
    "g": 43,
    "b": 177
  },
  "hsl": {
    "h": 242.239,
    "s": 60.909,
    "l": 43.137
  },
  "oklch": {
    "l": 0.40063,
    "c": 0.20164,
    "h": 274
  },
  "luminance": 0.0553
}

Semantic roles & 50–950 ramp

primary
#302BB1
secondary
#C3C672
accent
#E444DE
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #302BB1

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

Preview Lab → · Contrast checker → · Palette generator →

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