#302EB2#302EB2

#302EB2 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.6% C 0.200 H 273.6°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#302EB2
RGBrgb(48, 46, 178)
HSLhsl(241, 59%, 44%)
HSVhsv(241, 74%, 70%)
CMYKcmyk(73%, 74.2%, 0%, 30.2%)
CIE-LABlab(28.89, 44.34, -68.98)
CIE-LCHlch(28.89, 82.00, 302.73°)
OKLaboklab(40.59% 0.0125 -0.1996)
OKLCHoklch(40.59% 0.2 273.6)
XYZxyz(10.2291, 5.7957, 42.6904)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302EB2 #B0B22E
analogous
#2E6EB2 #302EB2 #722EB2
triadic
#302EB2 #B2302E #2EB230
tetradic
#302EB2 #B22E6E #B0B22E #2EB272
square
#302EB2 #B22E6E #B0B22E #2EB272
split-complementary
#302EB2 #B2722E #6EB22E
monochromatic
#161551 #232181 #302EB2 #4E4CD1 #7E7DDD

Accessibility & contrast

On white

9.72
#302EB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#302EB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302EB2
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302EB2#FFFFFF#000000##FFFFFF
##302EB21.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB6
Deuteranopia (green-blind)
#003EB0
Tritanopia (blue-blind)
#00546D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #302eb2;
/* rgb */ color: rgb(48, 46, 178);
/* oklch */ color: oklch(40.6% 0.200 273.6);
Tailwind
colors: {
  custom: {
    50: '#7d68ca',
    500: '#302eb2',
    950: '#000000',
  },
}
SCSS
$custom: #302eb2;
$custom-light: #7d68ca;
$custom-dark: #000000;
JSON
{
  "hex": "#302eb2",
  "rgb": {
    "r": 48,
    "g": 46,
    "b": 178
  },
  "hsl": {
    "h": 240.909,
    "s": 58.929,
    "l": 43.922
  },
  "oklch": {
    "l": 0.40589,
    "c": 0.19995,
    "h": 273.6
  },
  "luminance": 0.05797
}

Semantic roles & 50–950 ramp

primary
#302EB2
secondary
#C5C676
accent
#E246E0
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #302EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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