#302D7C#302D7C

#302D7C is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.2% C 0.130 H 279.1°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#302D7C
RGBrgb(48, 45, 124)
HSLhsl(242, 47%, 33%)
HSVhsv(242, 64%, 49%)
CMYKcmyk(61.3%, 63.7%, 0%, 51.4%)
CIE-LABlab(23.54, 26.36, -44.61)
CIE-LCHlch(23.54, 51.81, 300.58°)
OKLaboklab(35.17% 0.0204 -0.1282)
OKLCHoklch(35.17% 0.13 279.1)
XYZxyz(5.7942, 3.9600, 19.5239)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302D7C #797C2D
analogous
#2D517C #302D7C #572D7C
triadic
#302D7C #7C302D #2D7C30
tetradic
#302D7C #7C2D51 #797C2D #2D7C57
square
#302D7C #7C2D51 #797C2D #2D7C57
split-complementary
#302D7C #7C572D #517C2D
monochromatic
#0D0C22 #1F1D4F #302D7C #413DA9 #625FC5

Accessibility & contrast

On white

11.72
#302D7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#302D7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302D7C
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302D7C#FFFFFF#000000##FFFFFF
##302D7C1.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7F
Deuteranopia (green-blind)
#00357A
Tritanopia (blue-blind)
#004050
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #302d7c;
/* rgb */ color: rgb(48, 45, 124);
/* oklch */ color: oklch(35.2% 0.130 279.1);
Tailwind
colors: {
  custom: {
    50: '#7166a3',
    500: '#302d7c',
    950: '#000000',
  },
}
SCSS
$custom: #302d7c;
$custom-light: #7166a3;
$custom-dark: #000000;
JSON
{
  "hex": "#302d7c",
  "rgb": {
    "r": 48,
    "g": 45,
    "b": 124
  },
  "hsl": {
    "h": 242.278,
    "s": 46.746,
    "l": 33.137
  },
  "oklch": {
    "l": 0.35168,
    "c": 0.12987,
    "h": 279.1
  },
  "luminance": 0.0396
}

Semantic roles & 50–950 ramp

primary
#302D7C
secondary
#A8AB5A
accent
#D651D1
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #302D7C

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

Preview Lab → · Contrast checker → · Palette generator →

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