#302C7E#302C7E

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

Color values

HEX#302C7E
RGBrgb(48, 44, 126)
HSLhsl(243, 48%, 33%)
HSVhsv(243, 65%, 49%)
CMYKcmyk(61.9%, 65.1%, 0%, 50.6%)
CIE-LABlab(23.46, 27.72, -46.01)
CIE-LCHlch(23.46, 53.71, 301.07°)
OKLaboklab(35.16% 0.0213 -0.1324)
OKLCHoklch(35.16% 0.134 279.1)
XYZxyz(5.8843, 3.9357, 20.1842)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302C7E #7A7E2C
analogous
#2C517E #302C7E #592C7E
triadic
#302C7E #7E302C #2C7E30
tetradic
#302C7E #7E2C51 #7A7E2C #2C7E59
square
#302C7E #7E2C51 #7A7E2C #2C7E59
split-complementary
#302C7E #7E592C #517E2C
monochromatic
#0D0C23 #1F1C51 #302C7E #413CAB #635EC7

Accessibility & contrast

On white

11.75
#302C7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #302C7E
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302C7E#FFFFFF#000000##FFFFFF
##302C7E1.0011.751.7911.75
#FFFFFF11.751.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.751.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #302c7e;
/* rgb */ color: rgb(48, 44, 126);
/* oklch */ color: oklch(35.2% 0.134 279.1);
Tailwind
colors: {
  custom: {
    50: '#7165a4',
    500: '#302c7e',
    950: '#000000',
  },
}
SCSS
$custom: #302c7e;
$custom-light: #7165a4;
$custom-dark: #000000;
JSON
{
  "hex": "#302c7e",
  "rgb": {
    "r": 48,
    "g": 44,
    "b": 126
  },
  "hsl": {
    "h": 242.927,
    "s": 48.235,
    "l": 33.333
  },
  "oklch": {
    "l": 0.35162,
    "c": 0.13406,
    "h": 279.1
  },
  "luminance": 0.03936
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #302C7E

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

Preview Lab → · Contrast checker → · Palette generator →

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