#303199#303199

#303199 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.6% C 0.165 H 275.0°. Best body text is #FFFFFF at 10.37:1 contrast (WCAG AA passes).

Color values

HEX#303199
RGBrgb(48, 49, 153)
HSLhsl(239, 52%, 39%)
HSVhsv(239, 69%, 60%)
CMYKcmyk(68.6%, 68%, 0%, 40%)
CIE-LABlab(27.09, 34.00, -56.85)
CIE-LCHlch(27.09, 66.24, 300.88°)
OKLaboklab(38.55% 0.0144 -0.1641)
OKLCHoklch(38.55% 0.165 275)
XYZxyz(8.0651, 5.1242, 30.6949)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303199 #999830
analogous
#306599 #303199 #643099
triadic
#303199 #993031 #319930
tetradic
#303199 #993065 #999830 #309964
square
#303199 #993065 #999830 #309964
split-complementary
#303199 #996430 #659930
monochromatic
#13133C #21226A #303199 #4244C4 #7172D2

Accessibility & contrast

On white

10.37
#303199 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#303199 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303199
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303199#FFFFFF#000000##FFFFFF
##3031991.0010.372.0310.37
#FFFFFF10.371.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459C
Deuteranopia (green-blind)
#003B97
Tritanopia (blue-blind)
#004D60
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #303199;
/* rgb */ color: rgb(48, 49, 153);
/* oklch */ color: oklch(38.6% 0.165 275.0);
Tailwind
colors: {
  custom: {
    50: '#7769b8',
    500: '#303199',
    950: '#000000',
  },
}
SCSS
$custom: #303199;
$custom-light: #7769b8;
$custom-dark: #000000;
JSON
{
  "hex": "#303199",
  "rgb": {
    "r": 48,
    "g": 49,
    "b": 153
  },
  "hsl": {
    "h": 239.429,
    "s": 52.239,
    "l": 39.412
  },
  "oklch": {
    "l": 0.38551,
    "c": 0.16478,
    "h": 275
  },
  "luminance": 0.05125
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #303199

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

Preview Lab → · Contrast checker → · Palette generator →

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