#302C7F#302C7F

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

Color values

HEX#302C7F
RGBrgb(48, 44, 127)
HSLhsl(243, 49%, 34%)
HSVhsv(243, 65%, 50%)
CMYKcmyk(62.2%, 65.4%, 0%, 50.2%)
CIE-LABlab(23.54, 28.07, -46.50)
CIE-LCHlch(23.54, 54.32, 301.12°)
OKLaboklab(35.25% 0.0212 -0.1338)
OKLCHoklch(35.25% 0.135 279)
XYZxyz(5.9492, 3.9616, 20.5257)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302C7F #7B7F2C
analogous
#2C517F #302C7F #592C7F
triadic
#302C7F #7F302C #2C7F30
tetradic
#302C7F #7F2C51 #7B7F2C #2C7F59
square
#302C7F #7F2C51 #7B7F2C #2C7F59
split-complementary
#302C7F #7F592C #517F2C
monochromatic
#0E0D24 #1F1C52 #302C7F #413CAC #635EC7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##302C7F#FFFFFF#000000##FFFFFF
##302C7F1.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)
#003B82
Deuteranopia (green-blind)
#00357D
Tritanopia (blue-blind)
#004151
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #302c7f;
/* rgb */ color: rgb(48, 44, 127);
/* oklch */ color: oklch(35.3% 0.135 279.0);
Tailwind
colors: {
  custom: {
    50: '#7265a5',
    500: '#302c7f',
    950: '#000000',
  },
}
SCSS
$custom: #302c7f;
$custom-light: #7265a5;
$custom-dark: #000000;
JSON
{
  "hex": "#302c7f",
  "rgb": {
    "r": 48,
    "g": 44,
    "b": 127
  },
  "hsl": {
    "h": 242.892,
    "s": 48.538,
    "l": 33.529
  },
  "oklch": {
    "l": 0.35252,
    "c": 0.13547,
    "h": 279
  },
  "luminance": 0.03962
}

Semantic roles & 50–950 ramp

primary
#302C7F
secondary
#A9AD59
accent
#D850D2
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08050F
muted
#7B7A7F

Preview Lab

Preview with #302C7F

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

Preview Lab → · Contrast checker → · Palette generator →

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