#302D7D#302D7D

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

Color values

HEX#302D7D
RGBrgb(48, 45, 125)
HSLhsl(242, 47%, 33%)
HSVhsv(242, 64%, 49%)
CMYKcmyk(61.6%, 64%, 0%, 51%)
CIE-LABlab(23.62, 26.71, -45.11)
CIE-LCHlch(23.62, 52.42, 300.63°)
OKLaboklab(35.26% 0.0204 -0.1297)
OKLCHoklch(35.26% 0.131 278.9)
XYZxyz(5.8578, 3.9854, 19.8586)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302D7D #7A7D2D
analogous
#2D527D #302D7D #582D7D
triadic
#302D7D #7D302D #2D7D30
tetradic
#302D7D #7D2D52 #7A7D2D #2D7D58
square
#302D7D #7D2D52 #7A7D2D #2D7D58
split-complementary
#302D7D #7D582D #527D2D
monochromatic
#0D0D23 #1F1D50 #302D7D #413DAA #635FC5

Accessibility & contrast

On white

11.68
#302D7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #302D7D
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302D7D#FFFFFF#000000##FFFFFF
##302D7D1.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B80
Deuteranopia (green-blind)
#00357B
Tritanopia (blue-blind)
#004150
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #302d7d;
/* rgb */ color: rgb(48, 45, 125);
/* oklch */ color: oklch(35.3% 0.131 278.9);
Tailwind
colors: {
  custom: {
    50: '#7166a3',
    500: '#302d7d',
    950: '#000000',
  },
}
SCSS
$custom: #302d7d;
$custom-light: #7166a3;
$custom-dark: #000000;
JSON
{
  "hex": "#302d7d",
  "rgb": {
    "r": 48,
    "g": 45,
    "b": 125
  },
  "hsl": {
    "h": 242.25,
    "s": 47.059,
    "l": 33.333
  },
  "oklch": {
    "l": 0.35256,
    "c": 0.1313,
    "h": 278.9
  },
  "luminance": 0.03986
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #302D7D

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

Preview Lab → · Contrast checker → · Palette generator →

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