#302CA2#302CA2

#302CA2 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.6% C 0.182 H 275.2°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#302CA2
RGBrgb(48, 44, 162)
HSLhsl(242, 57%, 40%)
HSVhsv(242, 73%, 64%)
CMYKcmyk(70.4%, 72.8%, 0%, 36.5%)
CIE-LABlab(26.84, 40.15, -62.74)
CIE-LCHlch(26.84, 74.48, 302.62°)
OKLaboklab(38.64% 0.0165 -0.1813)
OKLCHoklch(38.64% 0.182 275.2)
XYZxyz(8.6390, 5.0376, 34.6925)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302CA2 #9EA22C
analogous
#2C63A2 #302CA2 #6B2CA2
triadic
#302CA2 #A2302C #2CA230
tetradic
#302CA2 #A22C63 #9EA22C #2CA26B
square
#302CA2 #A22C63 #9EA22C #2CA26B
split-complementary
#302CA2 #A26B2C #63A22C
monochromatic
#131242 #221F72 #302CA2 #4540CB #7470D8

Accessibility & contrast

On white

10.46
#302CA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #302CA2
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302CA2#FFFFFF#000000##FFFFFF
##302CA21.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A5
Deuteranopia (green-blind)
#003AA0
Tritanopia (blue-blind)
#004D64
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #302ca2;
/* rgb */ color: rgb(48, 44, 162);
/* oklch */ color: oklch(38.6% 0.182 275.2);
Tailwind
colors: {
  custom: {
    50: '#7966bf',
    500: '#302ca2',
    950: '#000000',
  },
}
SCSS
$custom: #302ca2;
$custom-light: #7966bf;
$custom-dark: #000000;
JSON
{
  "hex": "#302ca2",
  "rgb": {
    "r": 48,
    "g": 44,
    "b": 162
  },
  "hsl": {
    "h": 242.034,
    "s": 57.282,
    "l": 40.392
  },
  "oklch": {
    "l": 0.3864,
    "c": 0.18209,
    "h": 275.2
  },
  "luminance": 0.05038
}

Semantic roles & 50–950 ramp

primary
#302CA2
secondary
#BDBF6A
accent
#E147DB
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #302CA2

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

Preview Lab → · Contrast checker → · Palette generator →

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