#302E7D#302E7D

#302E7D is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.4% C 0.130 H 278.6°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#302E7D
RGBrgb(48, 46, 125)
HSLhsl(242, 46%, 34%)
HSVhsv(242, 63%, 49%)
CMYKcmyk(61.6%, 63.2%, 0%, 51%)
CIE-LABlab(23.88, 26.05, -44.69)
CIE-LCHlch(23.88, 51.73, 300.24°)
OKLaboklab(35.44% 0.0194 -0.1285)
OKLCHoklch(35.44% 0.13 278.6)
XYZxyz(5.8964, 4.0626, 19.8715)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302E7D #7B7D2E
analogous
#2E537D #302E7D #572E7D
triadic
#302E7D #7D302E #2E7D30
tetradic
#302E7D #7D2E53 #7B7D2E #2E7D57
square
#302E7D #7D2E53 #7B7D2E #2E7D57
split-complementary
#302E7D #7D572E #537D2E
monochromatic
#0E0D24 #1F1E50 #302E7D #413EAA #6361C5

Accessibility & contrast

On white

11.59
#302E7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#302E7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302E7D
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302E7D#FFFFFF#000000##FFFFFF
##302E7D1.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C80
Deuteranopia (green-blind)
#00367B
Tritanopia (blue-blind)
#004151
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #302e7d;
/* rgb */ color: rgb(48, 46, 125);
/* oklch */ color: oklch(35.4% 0.130 278.6);
Tailwind
colors: {
  custom: {
    50: '#7167a3',
    500: '#302e7d',
    950: '#000000',
  },
}
SCSS
$custom: #302e7d;
$custom-light: #7167a3;
$custom-dark: #000000;
JSON
{
  "hex": "#302e7d",
  "rgb": {
    "r": 48,
    "g": 46,
    "b": 125
  },
  "hsl": {
    "h": 241.519,
    "s": 46.199,
    "l": 33.529
  },
  "oklch": {
    "l": 0.35443,
    "c": 0.12994,
    "h": 278.6
  },
  "luminance": 0.04063
}

Semantic roles & 50–950 ramp

primary
#302E7D
secondary
#A9AB5B
accent
#D652D3
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #302E7D

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

Preview Lab → · Contrast checker → · Palette generator →

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