#303995#303995

#303995 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.6% C 0.149 H 273.2°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#303995
RGBrgb(48, 57, 149)
HSLhsl(235, 51%, 39%)
HSVhsv(235, 68%, 58%)
CMYKcmyk(67.8%, 61.7%, 0%, 41.6%)
CIE-LABlab(28.70, 27.39, -51.76)
CIE-LCHlch(28.70, 58.56, 297.88°)
OKLaboklab(39.63% 0.0083 -0.1492)
OKLCHoklch(39.63% 0.149 273.2)
XYZxyz(8.1051, 5.7238, 29.1056)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303995 #958C30
analogous
#306B95 #303995 #593095
triadic
#303995 #953039 #399530
tetradic
#303995 #95306B #958C30 #309559
square
#303995 #95306B #958C30 #309559
split-complementary
#303995 #955930 #6B9530
monochromatic
#121638 #212767 #303995 #414CC2 #6F78D1

Accessibility & contrast

On white

9.79
#303995 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#303995 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303995
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303995#FFFFFF#000000##FFFFFF
##3039951.009.792.159.79
#FFFFFF9.791.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004898
Deuteranopia (green-blind)
#003F93
Tritanopia (blue-blind)
#005061
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #303995;
/* rgb */ color: rgb(48, 57, 149);
/* oklch */ color: oklch(39.6% 0.149 273.2);
Tailwind
colors: {
  custom: {
    50: '#756fb5',
    500: '#303995',
    950: '#000000',
  },
}
SCSS
$custom: #303995;
$custom-light: #756fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#303995",
  "rgb": {
    "r": 48,
    "g": 57,
    "b": 149
  },
  "hsl": {
    "h": 234.653,
    "s": 51.269,
    "l": 38.627
  },
  "oklch": {
    "l": 0.39628,
    "c": 0.14939,
    "h": 273.2
  },
  "luminance": 0.05725
}

Semantic roles & 50–950 ramp

primary
#303995
secondary
#B8B169
accent
#CE4DDB
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #303995

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

Preview Lab → · Contrast checker → · Palette generator →

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