#302AB1#302AB1

#302AB1 is a dark, highly saturated blue. Relative luminance 0.055; OKLCH L 39.9% C 0.203 H 274.1°. Best body text is #FFFFFF at 10.04:1 contrast (WCAG AA passes).

Color values

HEX#302AB1
RGBrgb(48, 42, 177)
HSLhsl(243, 62%, 43%)
HSVhsv(243, 76%, 69%)
CMYKcmyk(72.9%, 76.3%, 0%, 30.6%)
CIE-LABlab(28.00, 46.23, -69.86)
CIE-LCHlch(28.00, 83.77, 303.50°)
OKLaboklab(39.93% 0.0146 -0.2021)
OKLCHoklch(39.93% 0.203 274.1)
XYZxyz(9.9801, 5.4576, 42.1139)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302AB1 #ABB12A
analogous
#2A67B1 #302AB1 #742AB1
triadic
#302AB1 #B1302A #2AB130
tetradic
#302AB1 #B12A67 #ABB12A #2AB174
square
#302AB1 #B12A67 #ABB12A #2AB174
split-complementary
#302AB1 #B1742A #67B12A
monochromatic
#15134E #231E80 #302AB1 #4C45D3 #7B77DF

Accessibility & contrast

On white

10.04
#302AB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#302AB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302AB1
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302AB1#FFFFFF#000000##FFFFFF
##302AB11.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #302ab1;
/* rgb */ color: rgb(48, 42, 177);
/* oklch */ color: oklch(39.9% 0.203 274.1);
Tailwind
colors: {
  custom: {
    50: '#7d66ca',
    500: '#302ab1',
    950: '#000000',
  },
}
SCSS
$custom: #302ab1;
$custom-light: #7d66ca;
$custom-dark: #000000;
JSON
{
  "hex": "#302ab1",
  "rgb": {
    "r": 48,
    "g": 42,
    "b": 177
  },
  "hsl": {
    "h": 242.667,
    "s": 61.644,
    "l": 42.941
  },
  "oklch": {
    "l": 0.39927,
    "c": 0.2026,
    "h": 274.1
  },
  "luminance": 0.05459
}

Semantic roles & 50–950 ramp

primary
#302AB1
secondary
#C3C670
accent
#E543DE
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #302AB1

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

Preview Lab → · Contrast checker → · Palette generator →

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