#302F9E#302F9E

#302F9E is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.7% C 0.174 H 275.0°. Best body text is #FFFFFF at 10.37:1 contrast (WCAG AA passes).

Color values

HEX#302F9E
RGBrgb(48, 47, 158)
HSLhsl(241, 54%, 40%)
HSVhsv(241, 70%, 62%)
CMYKcmyk(69.6%, 70.3%, 0%, 38%)
CIE-LABlab(27.10, 36.98, -59.88)
CIE-LCHlch(27.10, 70.38, 301.70°)
OKLaboklab(38.71% 0.0152 -0.173)
OKLCHoklch(38.71% 0.174 275)
XYZxyz(8.4050, 5.1293, 32.8882)
Luminance0.0513 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302F9E #9D9E2F
analogous
#2F659E #302F9E #682F9E
triadic
#302F9E #9E302F #2F9E30
tetradic
#302F9E #9E2F65 #9D9E2F #2F9E68
square
#302F9E #9E2F65 #9D9E2F #2F9E68
split-complementary
#302F9E #9E682F #659E2F
monochromatic
#131340 #22216F #302F9E #4443C7 #7372D5

Accessibility & contrast

On white

10.37
#302F9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #302F9E
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302F9E#FFFFFF#000000##FFFFFF
##302F9E1.0010.372.0310.37
#FFFFFF10.371.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A1
Deuteranopia (green-blind)
#003B9C
Tritanopia (blue-blind)
#004D63
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #302f9e;
/* rgb */ color: rgb(48, 47, 158);
/* oklch */ color: oklch(38.7% 0.174 275.0);
Tailwind
colors: {
  custom: {
    50: '#7868bc',
    500: '#302f9e',
    950: '#000000',
  },
}
SCSS
$custom: #302f9e;
$custom-light: #7868bc;
$custom-dark: #000000;
JSON
{
  "hex": "#302f9e",
  "rgb": {
    "r": 48,
    "g": 47,
    "b": 158
  },
  "hsl": {
    "h": 240.541,
    "s": 54.146,
    "l": 40.196
  },
  "oklch": {
    "l": 0.38705,
    "c": 0.17368,
    "h": 275
  },
  "luminance": 0.0513
}

Semantic roles & 50–950 ramp

primary
#302F9E
secondary
#BCBD6C
accent
#DE4ADC
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #302F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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