#302E7F#302E7F

#302E7F is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.6% C 0.133 H 278.3°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#302E7F
RGBrgb(48, 46, 127)
HSLhsl(241, 47%, 34%)
HSVhsv(241, 64%, 50%)
CMYKcmyk(62.2%, 63.8%, 0%, 50.2%)
CIE-LABlab(24.05, 26.76, -45.68)
CIE-LCHlch(24.05, 52.94, 300.36°)
OKLaboklab(35.62% 0.0193 -0.1314)
OKLCHoklch(35.62% 0.133 278.3)
XYZxyz(6.0255, 4.1142, 20.5512)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302E7F #7D7F2E
analogous
#2E557F #302E7F #592E7F
triadic
#302E7F #7F302E #2E7F30
tetradic
#302E7F #7F2E55 #7D7F2E #2E7F59
square
#302E7F #7F2E55 #7D7F2E #2E7F59
split-complementary
#302E7F #7F592E #557F2E
monochromatic
#0E0D25 #1F1E52 #302E7F #413EAC #6461C6

Accessibility & contrast

On white

11.52
#302E7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#302E7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302E7F
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302E7F#FFFFFF#000000##FFFFFF
##302E7F1.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D82
Deuteranopia (green-blind)
#00367D
Tritanopia (blue-blind)
#004252
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #302e7f;
/* rgb */ color: rgb(48, 46, 127);
/* oklch */ color: oklch(35.6% 0.133 278.3);
Tailwind
colors: {
  custom: {
    50: '#7167a5',
    500: '#302e7f',
    950: '#000000',
  },
}
SCSS
$custom: #302e7f;
$custom-light: #7167a5;
$custom-dark: #000000;
JSON
{
  "hex": "#302e7f",
  "rgb": {
    "r": 48,
    "g": 46,
    "b": 127
  },
  "hsl": {
    "h": 241.481,
    "s": 46.821,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35619,
    "c": 0.1328,
    "h": 278.3
  },
  "luminance": 0.04115
}

Semantic roles & 50–950 ramp

primary
#302E7F
secondary
#ABAD5C
accent
#D651D3
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #302E7F

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

Preview Lab → · Contrast checker → · Palette generator →

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