#302BEC#302BEC

#302BEC is a mid, highly saturated blue. Relative luminance 0.084; OKLCH L 46.6% C 0.269 H 270.3°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#302BEC
RGBrgb(48, 43, 236)
HSLhsl(242, 84%, 55%)
HSVhsv(242, 82%, 93%)
CMYKcmyk(79.7%, 81.8%, 0%, 7.5%)
CIE-LABlab(34.82, 63.85, -92.89)
CIE-LCHlch(34.82, 112.71, 304.50°)
OKLaboklab(46.62% 0.0016 -0.2688)
OKLCHoklch(46.62% 0.269 270.3)
XYZxyz(17.2180, 8.4103, 80.0565)
Luminance0.0841 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302BEC #E7EC2B
analogous
#2B87EC #302BEC #902BEC
triadic
#302BEC #EC302B #2BEC30
tetradic
#302BEC #EC2B87 #E7EC2B #2BEC90
square
#302BEC #EC2B87 #E7EC2B #2BEC90
split-complementary
#302BEC #EC902B #87EC2B
monochromatic
#100D90 #1712C8 #302BEC #6763F1 #9E9BF6

Accessibility & contrast

On white

7.83
#302BEC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#302BEC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302BEC
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302BEC#FFFFFF#000000##FFFFFF
##302BEC1.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BF1
Deuteranopia (green-blind)
#0048E9
Tritanopia (blue-blind)
#006A8E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #302bec;
/* rgb */ color: rgb(48, 43, 236);
/* oklch */ color: oklch(46.6% 0.269 270.3);
Tailwind
colors: {
  custom: {
    50: '#8b6af4',
    500: '#302bec',
    950: '#000000',
  },
}
SCSS
$custom: #302bec;
$custom-light: #8b6af4;
$custom-dark: #000000;
JSON
{
  "hex": "#302bec",
  "rgb": {
    "r": 48,
    "g": 43,
    "b": 236
  },
  "hsl": {
    "h": 241.554,
    "s": 83.55,
    "l": 54.706
  },
  "oklch": {
    "l": 0.46616,
    "c": 0.26885,
    "h": 270.3
  },
  "luminance": 0.08412
}

Semantic roles & 50–950 ramp

primary
#302BEC
secondary
#E0E291
accent
#FA2EF5
background
#F9F6FF
surface
#F2EBFF
border
#CCC6D7
text
#0E0717
muted
#7E7A85

Preview Lab

Preview with #302BEC

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

Preview Lab → · Contrast checker → · Palette generator →

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