#302B7F#302B7F

#302B7F is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.1% C 0.137 H 279.3°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#302B7F
RGBrgb(48, 43, 127)
HSLhsl(244, 49%, 33%)
HSVhsv(244, 66%, 50%)
CMYKcmyk(62.2%, 66.1%, 0%, 50.2%)
CIE-LABlab(23.30, 28.72, -46.90)
CIE-LCHlch(23.30, 55.00, 301.49°)
OKLaboklab(35.07% 0.0222 -0.135)
OKLCHoklch(35.07% 0.137 279.3)
XYZxyz(5.9123, 3.8880, 20.5135)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302B7F #7A7F2B
analogous
#2B507F #302B7F #5A2B7F
triadic
#302B7F #7F302B #2B7F30
tetradic
#302B7F #7F2B50 #7A7F2B #2B7F5A
square
#302B7F #7F2B50 #7A7F2B #2B7F5A
split-complementary
#302B7F #7F5A2B #507F2B
monochromatic
#0D0C24 #1F1C51 #302B7F #413AAD #635CC8

Accessibility & contrast

On white

11.81
#302B7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #302B7F
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302B7F#FFFFFF#000000##FFFFFF
##302B7F1.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B82
Deuteranopia (green-blind)
#00347D
Tritanopia (blue-blind)
#004051
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #302b7f;
/* rgb */ color: rgb(48, 43, 127);
/* oklch */ color: oklch(35.1% 0.137 279.3);
Tailwind
colors: {
  custom: {
    50: '#7265a5',
    500: '#302b7f',
    950: '#000000',
  },
}
SCSS
$custom: #302b7f;
$custom-light: #7265a5;
$custom-dark: #000000;
JSON
{
  "hex": "#302b7f",
  "rgb": {
    "r": 48,
    "g": 43,
    "b": 127
  },
  "hsl": {
    "h": 243.571,
    "s": 49.412,
    "l": 33.333
  },
  "oklch": {
    "l": 0.35072,
    "c": 0.1368,
    "h": 279.3
  },
  "luminance": 0.03888
}

Semantic roles & 50–950 ramp

primary
#302B7F
secondary
#A9AE58
accent
#D94FD1
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08050F
muted
#7B7A7F

Preview Lab

Preview with #302B7F

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

Preview Lab → · Contrast checker → · Palette generator →

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