#302FB2#302FB2

#302FB2 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.7% C 0.199 H 273.5°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#302FB2
RGBrgb(48, 47, 178)
HSLhsl(240, 58%, 44%)
HSVhsv(240, 74%, 70%)
CMYKcmyk(73%, 73.6%, 0%, 30.2%)
CIE-LABlab(29.09, 43.77, -68.65)
CIE-LCHlch(29.09, 81.41, 302.52°)
OKLaboklab(40.73% 0.012 -0.1986)
OKLCHoklch(40.73% 0.199 273.5)
XYZxyz(10.2686, 5.8747, 42.7036)
Luminance0.0588 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302FB2 #B1B22F
analogous
#2F70B2 #302FB2 #722FB2
triadic
#302FB2 #B2302F #2FB230
tetradic
#302FB2 #B22F70 #B1B22F #2FB272
square
#302FB2 #B22F70 #B1B22F #2FB272
split-complementary
#302FB2 #B2722F #70B22F
monochromatic
#161551 #232282 #302FB2 #4F4ED0 #7F7EDD

Accessibility & contrast

On white

9.65
#302FB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#302FB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302FB2
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302FB2#FFFFFF#000000##FFFFFF
##302FB21.009.652.189.65
#FFFFFF9.651.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB6
Deuteranopia (green-blind)
#003EB0
Tritanopia (blue-blind)
#00556E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #302fb2;
/* rgb */ color: rgb(48, 47, 178);
/* oklch */ color: oklch(40.7% 0.199 273.5);
Tailwind
colors: {
  custom: {
    50: '#7d69ca',
    500: '#302fb2',
    950: '#000000',
  },
}
SCSS
$custom: #302fb2;
$custom-light: #7d69ca;
$custom-dark: #000000;
JSON
{
  "hex": "#302fb2",
  "rgb": {
    "r": 48,
    "g": 47,
    "b": 178
  },
  "hsl": {
    "h": 240.458,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.40733,
    "c": 0.19895,
    "h": 273.5
  },
  "luminance": 0.05876
}

Semantic roles & 50–950 ramp

primary
#302FB2
secondary
#C5C677
accent
#E146E0
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #302FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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