#302FC1#302FC1

#302FC1 is a dark, highly saturated blue. Relative luminance 0.065; OKLCH L 42.3% C 0.217 H 272.4°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#302FC1
RGBrgb(48, 47, 193)
HSLhsl(240, 61%, 47%)
HSVhsv(240, 76%, 76%)
CMYKcmyk(75.1%, 75.6%, 0%, 24.3%)
CIE-LABlab(30.67, 48.69, -74.94)
CIE-LCHlch(30.67, 89.37, 303.02°)
OKLaboklab(42.31% 0.0092 -0.2169)
OKLCHoklch(42.31% 0.217 272.4)
XYZxyz(11.8578, 6.5104, 51.0734)
Luminance0.0651 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302FC1 #C0C12F
analogous
#2F77C1 #302FC1 #792FC1
triadic
#302FC1 #C1302F #2FC130
tetradic
#302FC1 #C12F77 #C0C12F #2FC179
square
#302FC1 #C12F77 #C0C12F #2FC179
split-complementary
#302FC1 #C1792F #77C12F
monochromatic
#18175F #242390 #302FC1 #5857D6 #8988E2

Accessibility & contrast

On white

9.12
#302FC1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#302FC1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302FC1
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302FC1#FFFFFF#000000##FFFFFF
##302FC11.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FC5
Deuteranopia (green-blind)
#0041BE
Tritanopia (blue-blind)
#005A76
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #302fc1;
/* rgb */ color: rgb(48, 47, 193);
/* oklch */ color: oklch(42.3% 0.217 272.4);
Tailwind
colors: {
  custom: {
    50: '#806ad5',
    500: '#302fc1',
    950: '#000000',
  },
}
SCSS
$custom: #302fc1;
$custom-light: #806ad5;
$custom-dark: #000000;
JSON
{
  "hex": "#302fc1",
  "rgb": {
    "r": 48,
    "g": 47,
    "b": 193
  },
  "hsl": {
    "h": 240.411,
    "s": 60.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.42313,
    "c": 0.21709,
    "h": 272.4
  },
  "luminance": 0.06512
}

Semantic roles & 50–950 ramp

primary
#302FC1
secondary
#CBCC80
accent
#E444E3
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #302FC1

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

Preview Lab → · Contrast checker → · Palette generator →

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