#302CA3#302CA3

#302CA3 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.7% C 0.183 H 275.1°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#302CA3
RGBrgb(48, 44, 163)
HSLhsl(242, 57%, 41%)
HSVhsv(242, 73%, 64%)
CMYKcmyk(70.6%, 73%, 0%, 36.1%)
CIE-LABlab(26.94, 40.48, -63.18)
CIE-LCHlch(26.94, 75.03, 302.65°)
OKLaboklab(38.74% 0.0163 -0.1826)
OKLCHoklch(38.74% 0.183 275.1)
XYZxyz(8.7283, 5.0733, 35.1625)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302CA3 #9FA32C
analogous
#2C63A3 #302CA3 #6B2CA3
triadic
#302CA3 #A3302C #2CA330
tetradic
#302CA3 #A32C63 #9FA32C #2CA36B
square
#302CA3 #A32C63 #9FA32C #2CA36B
split-complementary
#302CA3 #A36B2C #63A32C
monochromatic
#141243 #221F73 #302CA3 #4541CC #7471D9

Accessibility & contrast

On white

10.42
#302CA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#302CA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302CA3
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302CA3#FFFFFF#000000##FFFFFF
##302CA31.0010.422.0110.42
#FFFFFF10.421.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A7
Deuteranopia (green-blind)
#003AA1
Tritanopia (blue-blind)
#004D65
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #302ca3;
/* rgb */ color: rgb(48, 44, 163);
/* oklch */ color: oklch(38.7% 0.183 275.1);
Tailwind
colors: {
  custom: {
    50: '#7967bf',
    500: '#302ca3',
    950: '#000000',
  },
}
SCSS
$custom: #302ca3;
$custom-light: #7967bf;
$custom-dark: #000000;
JSON
{
  "hex": "#302ca3",
  "rgb": {
    "r": 48,
    "g": 44,
    "b": 163
  },
  "hsl": {
    "h": 242.017,
    "s": 57.488,
    "l": 40.588
  },
  "oklch": {
    "l": 0.38742,
    "c": 0.18335,
    "h": 275.1
  },
  "luminance": 0.05074
}

Semantic roles & 50–950 ramp

primary
#302CA3
secondary
#BDC06B
accent
#E147DC
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #302CA3

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

Preview Lab → · Contrast checker → · Palette generator →

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