#302FCA#302FCA

#302FCA is a dark, highly saturated blue. Relative luminance 0.069; OKLCH L 43.3% C 0.228 H 271.9°. Best body text is #FFFFFF at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#302FCA
RGBrgb(48, 47, 202)
HSLhsl(240, 62%, 49%)
HSVhsv(240, 77%, 79%)
CMYKcmyk(76.2%, 76.7%, 0%, 20.8%)
CIE-LABlab(31.63, 51.58, -78.61)
CIE-LCHlch(31.63, 94.02, 303.27°)
OKLaboklab(43.28% 0.0075 -0.2276)
OKLCHoklch(43.28% 0.228 271.9)
XYZxyz(12.8925, 6.9243, 56.5227)
Luminance0.0693 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302FCA #C9CA2F
analogous
#2F7CCA #302FCA #7E2FCA
triadic
#302FCA #CA302F #2FCA30
tetradic
#302FCA #CA2F7C #C9CA2F #2FCA7E
square
#302FCA #CA2F7C #C9CA2F #2FCA7E
split-complementary
#302FCA #CA7E2F #7CCA2F
monochromatic
#181867 #242398 #302FCA #5E5DD9 #8F8FE5

Accessibility & contrast

On white

8.80
#302FCA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#302FCA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302FCA
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302FCA#FFFFFF#000000##FFFFFF
##302FCA1.008.802.398.80
#FFFFFF8.801.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052CE
Deuteranopia (green-blind)
#0043C7
Tritanopia (blue-blind)
#005E7B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #302fca;
/* rgb */ color: rgb(48, 47, 202);
/* oklch */ color: oklch(43.3% 0.228 271.9);
Tailwind
colors: {
  custom: {
    50: '#826adc',
    500: '#302fca',
    950: '#000000',
  },
}
SCSS
$custom: #302fca;
$custom-light: #826adc;
$custom-dark: #000000;
JSON
{
  "hex": "#302fca",
  "rgb": {
    "r": 48,
    "g": 47,
    "b": 202
  },
  "hsl": {
    "h": 240.387,
    "s": 62.249,
    "l": 48.824
  },
  "oklch": {
    "l": 0.43281,
    "c": 0.22768,
    "h": 271.9
  },
  "luminance": 0.06926
}

Semantic roles & 50–950 ramp

primary
#302FCA
secondary
#CFCF86
accent
#E542E4
background
#F8F6FD
surface
#F0EBFB
border
#CBC6D4
text
#0D0715
muted
#7D7A83

Preview Lab

Preview with #302FCA

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

Preview Lab → · Contrast checker → · Palette generator →

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