#302D7A#302D7A

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

Color values

HEX#302D7A
RGBrgb(48, 45, 122)
HSLhsl(242, 46%, 33%)
HSVhsv(242, 63%, 48%)
CMYKcmyk(60.7%, 63.1%, 0%, 52.2%)
CIE-LABlab(23.37, 25.65, -43.61)
CIE-LCHlch(23.37, 50.60, 300.46°)
OKLaboklab(34.99% 0.0205 -0.1253)
OKLCHoklch(34.99% 0.127 279.3)
XYZxyz(5.6690, 3.9099, 18.8645)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302D7A #777A2D
analogous
#2D507A #302D7A #572D7A
triadic
#302D7A #7A302D #2D7A30
tetradic
#302D7A #7A2D50 #777A2D #2D7A57
square
#302D7A #7A2D50 #777A2D #2D7A57
split-complementary
#302D7A #7A572D #507A2D
monochromatic
#0D0C21 #1E1D4D #302D7A #423DA7 #625EC4

Accessibility & contrast

On white

11.78
#302D7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #302D7A
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302D7A#FFFFFF#000000##FFFFFF
##302D7A1.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7D
Deuteranopia (green-blind)
#003578
Tritanopia (blue-blind)
#01404F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #302d7a;
/* rgb */ color: rgb(48, 45, 122);
/* oklch */ color: oklch(35.0% 0.127 279.3);
Tailwind
colors: {
  custom: {
    50: '#7166a1',
    500: '#302d7a',
    950: '#000000',
  },
}
SCSS
$custom: #302d7a;
$custom-light: #7166a1;
$custom-dark: #000000;
JSON
{
  "hex": "#302d7a",
  "rgb": {
    "r": 48,
    "g": 45,
    "b": 122
  },
  "hsl": {
    "h": 242.338,
    "s": 46.108,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34993,
    "c": 0.127,
    "h": 279.3
  },
  "luminance": 0.0391
}

Semantic roles & 50–950 ramp

primary
#302D7A
secondary
#A7AA59
accent
#D652D1
background
#F7F6FA
surface
#EDEBF3
border
#C8C6CD
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #302D7A

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

Preview Lab → · Contrast checker → · Palette generator →

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