#302F9D#302F9D

#302F9D is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.6% C 0.172 H 275.1°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#302F9D
RGBrgb(48, 47, 157)
HSLhsl(241, 54%, 40%)
HSVhsv(241, 70%, 62%)
CMYKcmyk(69.4%, 70.1%, 0%, 38.4%)
CIE-LABlab(27.00, 36.64, -59.43)
CIE-LCHlch(27.00, 69.82, 301.65°)
OKLaboklab(38.61% 0.0153 -0.1717)
OKLCHoklch(38.61% 0.172 275.1)
XYZxyz(8.3192, 5.0950, 32.4368)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302F9D #9C9D2F
analogous
#2F659D #302F9D #672F9D
triadic
#302F9D #9D302F #2F9D30
tetradic
#302F9D #9D2F65 #9C9D2F #2F9D67
square
#302F9D #9D2F65 #9C9D2F #2F9D67
split-complementary
#302F9D #9D672F #659D2F
monochromatic
#13133F #22216E #302F9D #4443C7 #7372D5

Accessibility & contrast

On white

10.40
#302F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#302F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302F9D
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302F9D#FFFFFF#000000##FFFFFF
##302F9D1.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A0
Deuteranopia (green-blind)
#003B9B
Tritanopia (blue-blind)
#004D62
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #302f9d;
/* rgb */ color: rgb(48, 47, 157);
/* oklch */ color: oklch(38.6% 0.172 275.1);
Tailwind
colors: {
  custom: {
    50: '#7868bb',
    500: '#302f9d',
    950: '#000000',
  },
}
SCSS
$custom: #302f9d;
$custom-light: #7868bb;
$custom-dark: #000000;
JSON
{
  "hex": "#302f9d",
  "rgb": {
    "r": 48,
    "g": 47,
    "b": 157
  },
  "hsl": {
    "h": 240.545,
    "s": 53.922,
    "l": 40
  },
  "oklch": {
    "l": 0.38607,
    "c": 0.17237,
    "h": 275.1
  },
  "luminance": 0.05096
}

Semantic roles & 50–950 ramp

primary
#302F9D
secondary
#BCBC6B
accent
#DD4BDC
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #302F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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