#302C7C#302C7C

#302C7C is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.0% C 0.131 H 279.4°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#302C7C
RGBrgb(48, 44, 124)
HSLhsl(243, 48%, 33%)
HSVhsv(243, 65%, 49%)
CMYKcmyk(61.3%, 64.5%, 0%, 51.4%)
CIE-LABlab(23.29, 27.02, -45.02)
CIE-LCHlch(23.29, 52.51, 300.97°)
OKLaboklab(34.98% 0.0214 -0.1295)
OKLCHoklch(34.98% 0.131 279.4)
XYZxyz(5.7565, 3.8846, 19.5113)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302C7C #787C2C
analogous
#2C507C #302C7C #582C7C
triadic
#302C7C #7C302C #2C7C30
tetradic
#302C7C #7C2C50 #787C2C #2C7C58
square
#302C7C #7C2C50 #787C2C #2C7C58
split-complementary
#302C7C #7C582C #507C2C
monochromatic
#0D0C22 #1F1C4F #302C7C #413CA9 #625DC5

Accessibility & contrast

On white

11.82
#302C7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#302C7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302C7C
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302C7C#FFFFFF#000000##FFFFFF
##302C7C1.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7F
Deuteranopia (green-blind)
#00347A
Tritanopia (blue-blind)
#00404F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #302c7c;
/* rgb */ color: rgb(48, 44, 124);
/* oklch */ color: oklch(35.0% 0.131 279.4);
Tailwind
colors: {
  custom: {
    50: '#7165a3',
    500: '#302c7c',
    950: '#000000',
  },
}
SCSS
$custom: #302c7c;
$custom-light: #7165a3;
$custom-dark: #000000;
JSON
{
  "hex": "#302c7c",
  "rgb": {
    "r": 48,
    "g": 44,
    "b": 124
  },
  "hsl": {
    "h": 243,
    "s": 47.619,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34983,
    "c": 0.13123,
    "h": 279.4
  },
  "luminance": 0.03885
}

Semantic roles & 50–950 ramp

primary
#302C7C
secondary
#A7AC58
accent
#D751D0
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08050F
muted
#7B7A7F

Preview Lab

Preview with #302C7C

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

Preview Lab → · Contrast checker → · Palette generator →

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