#302D7E#302D7E

#302D7E is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.3% C 0.133 H 278.8°. Best body text is #FFFFFF at 11.65:1 contrast (WCAG AA passes).

Color values

HEX#302D7E
RGBrgb(48, 45, 126)
HSLhsl(242, 47%, 34%)
HSVhsv(242, 64%, 49%)
CMYKcmyk(61.9%, 64.3%, 0%, 50.6%)
CIE-LABlab(23.71, 27.06, -45.60)
CIE-LCHlch(23.71, 53.03, 300.69°)
OKLaboklab(35.35% 0.0203 -0.1312)
OKLCHoklch(35.35% 0.133 278.8)
XYZxyz(5.9220, 4.0111, 20.1968)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302D7E #7B7E2D
analogous
#2D527E #302D7E #582D7E
triadic
#302D7E #7E302D #2D7E30
tetradic
#302D7E #7E2D52 #7B7E2D #2D7E58
square
#302D7E #7E2D52 #7B7E2D #2D7E58
split-complementary
#302D7E #7E582D #527E2D
monochromatic
#0E0D24 #1F1D51 #302D7E #413DAB #635FC6

Accessibility & contrast

On white

11.65
#302D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#302D7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302D7E
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302D7E#FFFFFF#000000##FFFFFF
##302D7E1.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C81
Deuteranopia (green-blind)
#00357C
Tritanopia (blue-blind)
#004151
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #302d7e;
/* rgb */ color: rgb(48, 45, 126);
/* oklch */ color: oklch(35.3% 0.133 278.8);
Tailwind
colors: {
  custom: {
    50: '#7166a4',
    500: '#302d7e',
    950: '#000000',
  },
}
SCSS
$custom: #302d7e;
$custom-light: #7166a4;
$custom-dark: #000000;
JSON
{
  "hex": "#302d7e",
  "rgb": {
    "r": 48,
    "g": 45,
    "b": 126
  },
  "hsl": {
    "h": 242.222,
    "s": 47.368,
    "l": 33.529
  },
  "oklch": {
    "l": 0.35345,
    "c": 0.13272,
    "h": 278.8
  },
  "luminance": 0.04012
}

Semantic roles & 50–950 ramp

primary
#302D7E
secondary
#A9AC5A
accent
#D751D2
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #302D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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