#302DE2#302DE2

#302DE2 is a mid, highly saturated blue. Relative luminance 0.080; OKLCH L 45.7% C 0.257 H 270.7°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#302DE2
RGBrgb(48, 45, 226)
HSLhsl(241, 76%, 53%)
HSVhsv(241, 80%, 89%)
CMYKcmyk(78.8%, 80.1%, 0%, 11.4%)
CIE-LABlab(33.97, 59.99, -88.60)
CIE-LCHlch(33.97, 107.00, 304.10°)
OKLaboklab(45.69% 0.0032 -0.2565)
OKLCHoklch(45.69% 0.257 270.7)
XYZxyz(15.8801, 7.9943, 72.6429)
Luminance0.0800 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302DE2 #DFE22D
analogous
#2D85E2 #302DE2 #8A2DE2
triadic
#302DE2 #E2302D #2DE230
tetradic
#302DE2 #E22D85 #DFE22D #2DE28A
square
#302DE2 #E22D85 #DFE22D #2DE28A
split-complementary
#302DE2 #E28A2D #85E22D
monochromatic
#141283 #1C19B8 #302DE2 #6563E9 #9A99F1

Accessibility & contrast

On white

8.08
#302DE2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#302DE2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302DE2
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302DE2#FFFFFF#000000##FFFFFF
##302DE21.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059E7
Deuteranopia (green-blind)
#0046DF
Tritanopia (blue-blind)
#006789
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #302de2;
/* rgb */ color: rgb(48, 45, 226);
/* oklch */ color: oklch(45.7% 0.257 270.7);
Tailwind
colors: {
  custom: {
    50: '#886bed',
    500: '#302de2',
    950: '#000000',
  },
}
SCSS
$custom: #302de2;
$custom-light: #886bed;
$custom-dark: #000000;
JSON
{
  "hex": "#302de2",
  "rgb": {
    "r": 48,
    "g": 45,
    "b": 226
  },
  "hsl": {
    "h": 240.994,
    "s": 75.732,
    "l": 53.137
  },
  "oklch": {
    "l": 0.45693,
    "c": 0.25651,
    "h": 270.7
  },
  "luminance": 0.07996
}

Semantic roles & 50–950 ramp

primary
#302DE2
secondary
#DBDC8E
accent
#F235EF
background
#F9F6FE
surface
#F2EBFD
border
#CCC6D5
text
#0E0717
muted
#7E7A85

Preview Lab

Preview with #302DE2

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

Preview Lab → · Contrast checker → · Palette generator →

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