#302FAA#302FAA

#302FAA is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.9% C 0.189 H 274.0°. Best body text is #FFFFFF at 9.94:1 contrast (WCAG AA passes).

Color values

HEX#302FAA
RGBrgb(48, 47, 170)
HSLhsl(240, 57%, 43%)
HSVhsv(240, 72%, 67%)
CMYKcmyk(71.8%, 72.4%, 0%, 33.3%)
CIE-LABlab(28.28, 41.08, -65.20)
CIE-LCHlch(28.28, 77.06, 302.22°)
OKLaboklab(39.91% 0.0133 -0.1885)
OKLCHoklch(39.91% 0.189 274)
XYZxyz(9.4887, 5.5628, 38.5961)
Luminance0.0556 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302FAA #A9AA2F
analogous
#2F6BAA #302FAA #6E2FAA
triadic
#302FAA #AA302F #2FAA30
tetradic
#302FAA #AA2F6B #A9AA2F #2FAA6E
square
#302FAA #AA2F6B #A9AA2F #2FAA6E
split-complementary
#302FAA #AA6E2F #6BAA2F
monochromatic
#15144A #22227A #302FAA #4A49CD #7A79DA

Accessibility & contrast

On white

9.94
#302FAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#302FAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302FAA
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302FAA#FFFFFF#000000##FFFFFF
##302FAA1.009.942.119.94
#FFFFFF9.941.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AE
Deuteranopia (green-blind)
#003DA8
Tritanopia (blue-blind)
#005269
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #302faa;
/* rgb */ color: rgb(48, 47, 170);
/* oklch */ color: oklch(39.9% 0.189 274.0);
Tailwind
colors: {
  custom: {
    50: '#7b69c4',
    500: '#302faa',
    950: '#000000',
  },
}
SCSS
$custom: #302faa;
$custom-light: #7b69c4;
$custom-dark: #000000;
JSON
{
  "hex": "#302faa",
  "rgb": {
    "r": 48,
    "g": 47,
    "b": 170
  },
  "hsl": {
    "h": 240.488,
    "s": 56.682,
    "l": 42.549
  },
  "oklch": {
    "l": 0.3991,
    "c": 0.189,
    "h": 274
  },
  "luminance": 0.05564
}

Semantic roles & 50–950 ramp

primary
#302FAA
secondary
#C2C272
accent
#E048DF
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #302FAA

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

Preview Lab → · Contrast checker → · Palette generator →

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