#302F9F#302F9F

#302F9F is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.8% C 0.175 H 274.9°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#302F9F
RGBrgb(48, 47, 159)
HSLhsl(241, 54%, 40%)
HSVhsv(241, 70%, 62%)
CMYKcmyk(69.8%, 70.4%, 0%, 37.6%)
CIE-LABlab(27.20, 37.33, -60.33)
CIE-LCHlch(27.20, 70.95, 301.75°)
OKLaboklab(38.8% 0.0151 -0.1743)
OKLCHoklch(38.8% 0.175 274.9)
XYZxyz(8.4914, 5.1638, 33.3434)
Luminance0.0517 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302F9F #9E9F2F
analogous
#2F669F #302F9F #682F9F
triadic
#302F9F #9F302F #2F9F30
tetradic
#302F9F #9F2F66 #9E9F2F #2F9F68
square
#302F9F #9F2F66 #9E9F2F #2F9F68
split-complementary
#302F9F #9F682F #669F2F
monochromatic
#131341 #222170 #302F9F #4544C8 #7473D6

Accessibility & contrast

On white

10.33
#302F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#302F9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302F9F
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302F9F#FFFFFF#000000##FFFFFF
##302F9F1.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A2
Deuteranopia (green-blind)
#003B9D
Tritanopia (blue-blind)
#004E63
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #302f9f;
/* rgb */ color: rgb(48, 47, 159);
/* oklch */ color: oklch(38.8% 0.175 274.9);
Tailwind
colors: {
  custom: {
    50: '#7868bc',
    500: '#302f9f',
    950: '#000000',
  },
}
SCSS
$custom: #302f9f;
$custom-light: #7868bc;
$custom-dark: #000000;
JSON
{
  "hex": "#302f9f",
  "rgb": {
    "r": 48,
    "g": 47,
    "b": 159
  },
  "hsl": {
    "h": 240.536,
    "s": 54.369,
    "l": 40.392
  },
  "oklch": {
    "l": 0.38804,
    "c": 0.17498,
    "h": 274.9
  },
  "luminance": 0.05165
}

Semantic roles & 50–950 ramp

primary
#302F9F
secondary
#BDBD6D
accent
#DE4ADC
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #302F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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