#302F9C#302F9C

#302F9C is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.5% C 0.171 H 275.2°. Best body text is #FFFFFF at 10.44:1 contrast (WCAG AA passes).

Color values

HEX#302F9C
RGBrgb(48, 47, 156)
HSLhsl(241, 54%, 40%)
HSVhsv(241, 70%, 61%)
CMYKcmyk(69.2%, 69.9%, 0%, 38.8%)
CIE-LABlab(26.91, 36.29, -58.98)
CIE-LCHlch(26.91, 69.25, 301.61°)
OKLaboklab(38.51% 0.0155 -0.1704)
OKLCHoklch(38.51% 0.171 275.2)
XYZxyz(8.2342, 5.0610, 31.9890)
Luminance0.0506 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302F9C #9B9C2F
analogous
#2F659C #302F9C #662F9C
triadic
#302F9C #9C302F #2F9C30
tetradic
#302F9C #9C2F65 #9B9C2F #2F9C66
square
#302F9C #9C2F65 #9B9C2F #2F9C66
split-complementary
#302F9C #9C662F #659C2F
monochromatic
#13133E #22216D #302F9C #4342C6 #7271D4

Accessibility & contrast

On white

10.44
#302F9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#302F9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302F9C
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302F9C#FFFFFF#000000##FFFFFF
##302F9C1.0010.442.0110.44
#FFFFFF10.441.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459F
Deuteranopia (green-blind)
#003B9A
Tritanopia (blue-blind)
#004C61
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #302f9c;
/* rgb */ color: rgb(48, 47, 156);
/* oklch */ color: oklch(38.5% 0.171 275.2);
Tailwind
colors: {
  custom: {
    50: '#7868ba',
    500: '#302f9c',
    950: '#000000',
  },
}
SCSS
$custom: #302f9c;
$custom-light: #7868ba;
$custom-dark: #000000;
JSON
{
  "hex": "#302f9c",
  "rgb": {
    "r": 48,
    "g": 47,
    "b": 156
  },
  "hsl": {
    "h": 240.55,
    "s": 53.695,
    "l": 39.804
  },
  "oklch": {
    "l": 0.38509,
    "c": 0.17107,
    "h": 275.2
  },
  "luminance": 0.05062
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #302F9C

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

Preview Lab → · Contrast checker → · Palette generator →

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