#302E8F#302E8F

#302E8F is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.1% C 0.155 H 276.6°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#302E8F
RGBrgb(48, 46, 143)
HSLhsl(241, 51%, 37%)
HSVhsv(241, 68%, 56%)
CMYKcmyk(66.4%, 67.8%, 0%, 43.9%)
CIE-LABlab(25.46, 32.40, -53.37)
CIE-LCHlch(25.46, 62.43, 301.26°)
OKLaboklab(37.09% 0.0179 -0.1539)
OKLCHoklch(37.09% 0.155 276.6)
XYZxyz(7.1522, 4.5649, 26.4855)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302E8F #8D8F2E
analogous
#2E5D8F #302E8F #612E8F
triadic
#302E8F #8F302E #2E8F30
tetradic
#302E8F #8F2E5D #8D8F2E #2E8F61
square
#302E8F #8F2E5D #8D8F2E #2E8F61
split-complementary
#302E8F #8F612E #5D8F2E
monochromatic
#111032 #201F61 #302E8F #403DBD #6B69CF

Accessibility & contrast

On white

10.98
#302E8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#302E8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302E8F
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302E8F#FFFFFF#000000##FFFFFF
##302E8F1.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004192
Deuteranopia (green-blind)
#00388D
Tritanopia (blue-blind)
#00475A
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #302e8f;
/* rgb */ color: rgb(48, 46, 143);
/* oklch */ color: oklch(37.1% 0.155 276.6);
Tailwind
colors: {
  custom: {
    50: '#7567b1',
    500: '#302e8f',
    950: '#000000',
  },
}
SCSS
$custom: #302e8f;
$custom-light: #7567b1;
$custom-dark: #000000;
JSON
{
  "hex": "#302e8f",
  "rgb": {
    "r": 48,
    "g": 46,
    "b": 143
  },
  "hsl": {
    "h": 241.237,
    "s": 51.323,
    "l": 37.059
  },
  "oklch": {
    "l": 0.37087,
    "c": 0.15498,
    "h": 276.6
  },
  "luminance": 0.04566
}

Semantic roles & 50–950 ramp

primary
#302E8F
secondary
#B4B663
accent
#DB4DD8
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #302E8F

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

Preview Lab → · Contrast checker → · Palette generator →

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