#302AB2#302AB2

#302AB2 is a dark, highly saturated blue. Relative luminance 0.055; OKLCH L 40.0% C 0.204 H 274.0°. Best body text is #FFFFFF at 10.00:1 contrast (WCAG AA passes).

Color values

HEX#302AB2
RGBrgb(48, 42, 178)
HSLhsl(243, 62%, 43%)
HSVhsv(243, 76%, 70%)
CMYKcmyk(73%, 76.4%, 0%, 30.2%)
CIE-LABlab(28.11, 46.55, -70.28)
CIE-LCHlch(28.11, 84.30, 303.52°)
OKLaboklab(40.03% 0.0144 -0.2033)
OKLCHoklch(40.03% 0.204 274)
XYZxyz(10.0801, 5.4977, 42.6408)
Luminance0.0550 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302AB2 #ACB22A
analogous
#2A68B2 #302AB2 #742AB2
triadic
#302AB2 #B2302A #2AB230
tetradic
#302AB2 #B22A68 #ACB22A #2AB274
square
#302AB2 #B22A68 #ACB22A #2AB274
split-complementary
#302AB2 #B2742A #68B22A
monochromatic
#15134F #231E80 #302AB2 #4C46D3 #7C77DF

Accessibility & contrast

On white

10.00
#302AB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#302AB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302AB2
10.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302AB2#FFFFFF#000000##FFFFFF
##302AB21.0010.002.1010.00
#FFFFFF10.001.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B6
Deuteranopia (green-blind)
#003CB0
Tritanopia (blue-blind)
#00526D
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #302ab2;
/* rgb */ color: rgb(48, 42, 178);
/* oklch */ color: oklch(40.0% 0.204 274.0);
Tailwind
colors: {
  custom: {
    50: '#7d66ca',
    500: '#302ab2',
    950: '#000000',
  },
}
SCSS
$custom: #302ab2;
$custom-light: #7d66ca;
$custom-dark: #000000;
JSON
{
  "hex": "#302ab2",
  "rgb": {
    "r": 48,
    "g": 42,
    "b": 178
  },
  "hsl": {
    "h": 242.647,
    "s": 61.818,
    "l": 43.137
  },
  "oklch": {
    "l": 0.40034,
    "c": 0.2038,
    "h": 274
  },
  "luminance": 0.05499
}

Semantic roles & 50–950 ramp

primary
#302AB2
secondary
#C3C771
accent
#E543DE
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #302AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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