#302FD2#302FD2

#302FD2 is a dark, highly saturated blue. Relative luminance 0.073; OKLCH L 44.2% C 0.237 H 271.4°. Best body text is #FFFFFF at 8.53:1 contrast (WCAG AA passes).

Color values

HEX#302FD2
RGBrgb(48, 47, 210)
HSLhsl(240, 64%, 50%)
HSVhsv(240, 78%, 82%)
CMYKcmyk(77.1%, 77.6%, 0%, 17.6%)
CIE-LABlab(32.51, 54.11, -81.81)
CIE-LCHlch(32.51, 98.09, 303.48°)
OKLaboklab(44.15% 0.0059 -0.2368)
OKLCHoklch(44.15% 0.237 271.4)
XYZxyz(13.8644, 7.3130, 61.6411)
Luminance0.0732 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302FD2 #D1D22F
analogous
#2F7FD2 #302FD2 #812FD2
triadic
#302FD2 #D2302F #2FD230
tetradic
#302FD2 #D22F7F #D1D22F #2FD281
square
#302FD2 #D22F7F #D1D22F #2FD281
split-complementary
#302FD2 #D2812F #7FD22F
monochromatic
#18186F #2423A1 #302FD2 #6261DD #9494E8

Accessibility & contrast

On white

8.53
#302FD2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#302FD2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302FD2
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302FD2#FFFFFF#000000##FFFFFF
##302FD21.008.532.468.53
#FFFFFF8.531.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054D7
Deuteranopia (green-blind)
#0044CF
Tritanopia (blue-blind)
#006180
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #302fd2;
/* rgb */ color: rgb(48, 47, 210);
/* oklch */ color: oklch(44.2% 0.237 271.4);
Tailwind
colors: {
  custom: {
    50: '#846be1',
    500: '#302fd2',
    950: '#000000',
  },
}
SCSS
$custom: #302fd2;
$custom-light: #846be1;
$custom-dark: #000000;
JSON
{
  "hex": "#302fd2",
  "rgb": {
    "r": 48,
    "g": 47,
    "b": 210
  },
  "hsl": {
    "h": 240.368,
    "s": 64.427,
    "l": 50.392
  },
  "oklch": {
    "l": 0.44152,
    "c": 0.23692,
    "h": 271.4
  },
  "luminance": 0.07315
}

Semantic roles & 50–950 ramp

primary
#302FD2
secondary
#D2D38A
accent
#E740E6
background
#F9F6FE
surface
#F1EBFC
border
#CBC6D5
text
#0D0716
muted
#7E7A84

Preview Lab

Preview with #302FD2

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

Preview Lab → · Contrast checker → · Palette generator →

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