#303299#303299

#303299 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.7% C 0.164 H 274.8°. Best body text is #FFFFFF at 10.29:1 contrast (WCAG AA passes).

Color values

HEX#303299
RGBrgb(48, 50, 153)
HSLhsl(239, 52%, 39%)
HSVhsv(239, 69%, 60%)
CMYKcmyk(68.6%, 67.3%, 0%, 40%)
CIE-LABlab(27.32, 33.37, -56.47)
CIE-LCHlch(27.32, 65.59, 300.58°)
OKLaboklab(38.72% 0.0137 -0.163)
OKLCHoklch(38.72% 0.164 274.8)
XYZxyz(8.1074, 5.2088, 30.7090)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303299 #999730
analogous
#306799 #303299 #633099
triadic
#303299 #993032 #329930
tetradic
#303299 #993067 #999730 #309963
square
#303299 #993067 #999730 #309963
split-complementary
#303299 #996330 #679930
monochromatic
#13143C #21236A #303299 #4245C4 #7173D2

Accessibility & contrast

On white

10.29
#303299 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#303299 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303299
10.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303299#FFFFFF#000000##FFFFFF
##3032991.0010.292.0410.29
#FFFFFF10.291.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459C
Deuteranopia (green-blind)
#003C97
Tritanopia (blue-blind)
#004D61
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #303299;
/* rgb */ color: rgb(48, 50, 153);
/* oklch */ color: oklch(38.7% 0.164 274.8);
Tailwind
colors: {
  custom: {
    50: '#776ab8',
    500: '#303299',
    950: '#000000',
  },
}
SCSS
$custom: #303299;
$custom-light: #776ab8;
$custom-dark: #000000;
JSON
{
  "hex": "#303299",
  "rgb": {
    "r": 48,
    "g": 50,
    "b": 153
  },
  "hsl": {
    "h": 238.857,
    "s": 52.239,
    "l": 39.412
  },
  "oklch": {
    "l": 0.38722,
    "c": 0.16359,
    "h": 274.8
  },
  "luminance": 0.05209
}

Semantic roles & 50–950 ramp

primary
#303299
secondary
#BAB96B
accent
#D94CDC
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #303299

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

Preview Lab → · Contrast checker → · Palette generator →

#303299 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva