#302E9F#302E9F

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

Color values

HEX#302E9F
RGBrgb(48, 46, 159)
HSLhsl(241, 55%, 40%)
HSVhsv(241, 71%, 62%)
CMYKcmyk(69.8%, 71.1%, 0%, 37.6%)
CIE-LABlab(26.98, 37.94, -60.69)
CIE-LCHlch(26.98, 71.58, 302.01°)
OKLaboklab(38.65% 0.0157 -0.1754)
OKLCHoklch(38.65% 0.176 275.1)
XYZxyz(8.4519, 5.0848, 33.3302)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302E9F #9D9F2E
analogous
#2E649F #302E9F #682E9F
triadic
#302E9F #9F302E #2E9F30
tetradic
#302E9F #9F2E64 #9D9F2E #2E9F68
square
#302E9F #9F2E64 #9D9F2E #2E9F68
split-complementary
#302E9F #9F682E #649F2E
monochromatic
#131340 #222070 #302E9F #4442C8 #7371D6

Accessibility & contrast

On white

10.41
#302E9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #302E9F
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302E9F#FFFFFF#000000##FFFFFF
##302E9F1.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #302e9f;
/* rgb */ color: rgb(48, 46, 159);
/* oklch */ color: oklch(38.6% 0.176 275.1);
Tailwind
colors: {
  custom: {
    50: '#7868bc',
    500: '#302e9f',
    950: '#000000',
  },
}
SCSS
$custom: #302e9f;
$custom-light: #7868bc;
$custom-dark: #000000;
JSON
{
  "hex": "#302e9f",
  "rgb": {
    "r": 48,
    "g": 46,
    "b": 159
  },
  "hsl": {
    "h": 241.062,
    "s": 55.122,
    "l": 40.196
  },
  "oklch": {
    "l": 0.38645,
    "c": 0.17609,
    "h": 275.1
  },
  "luminance": 0.05086
}

Semantic roles & 50–950 ramp

primary
#302E9F
secondary
#BCBE6B
accent
#DE49DC
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #302E9F

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

Preview Lab → · Contrast checker → · Palette generator →

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