#302A7E#302A7E

#302A7E is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.8% C 0.137 H 279.8°. Best body text is #FFFFFF at 11.94:1 contrast (WCAG AA passes).

Color values

HEX#302A7E
RGBrgb(48, 42, 126)
HSLhsl(244, 50%, 33%)
HSVhsv(244, 67%, 49%)
CMYKcmyk(61.9%, 66.7%, 0%, 50.6%)
CIE-LABlab(22.97, 29.03, -46.81)
CIE-LCHlch(22.97, 55.08, 301.80°)
OKLaboklab(34.8% 0.0232 -0.1347)
OKLCHoklch(34.8% 0.137 279.8)
XYZxyz(5.8116, 3.7902, 20.1600)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302A7E #787E2A
analogous
#2A4E7E #302A7E #5A2A7E
triadic
#302A7E #7E302A #2A7E30
tetradic
#302A7E #7E2A4E #787E2A #2A7E5A
square
#302A7E #7E2A4E #787E2A #2A7E5A
split-complementary
#302A7E #7E5A2A #4E7E2A
monochromatic
#0D0B22 #1F1B50 #302A7E #4139AC #625AC8

Accessibility & contrast

On white

11.94
#302A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#302A7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302A7E
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302A7E#FFFFFF#000000##FFFFFF
##302A7E1.0011.941.7611.94
#FFFFFF11.941.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A81
Deuteranopia (green-blind)
#00347C
Tritanopia (blue-blind)
#003F50
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #302a7e;
/* rgb */ color: rgb(48, 42, 126);
/* oklch */ color: oklch(34.8% 0.137 279.8);
Tailwind
colors: {
  custom: {
    50: '#7264a4',
    500: '#302a7e',
    950: '#000000',
  },
}
SCSS
$custom: #302a7e;
$custom-light: #7264a4;
$custom-dark: #000000;
JSON
{
  "hex": "#302a7e",
  "rgb": {
    "r": 48,
    "g": 42,
    "b": 126
  },
  "hsl": {
    "h": 244.286,
    "s": 50,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34803,
    "c": 0.13671,
    "h": 279.8
  },
  "luminance": 0.03791
}

Semantic roles & 50–950 ramp

primary
#302A7E
secondary
#A7AE56
accent
#DA4ED0
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08050F
muted
#7B7A7F

Preview Lab

Preview with #302A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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