#303899#303899

#303899 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.8% C 0.156 H 273.3°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#303899
RGBrgb(48, 56, 153)
HSLhsl(235, 52%, 39%)
HSVhsv(235, 69%, 60%)
CMYKcmyk(68.6%, 63.4%, 0%, 40%)
CIE-LABlab(28.79, 29.49, -54.07)
CIE-LCHlch(28.79, 61.59, 298.61°)
OKLaboklab(39.79% 0.009 -0.1559)
OKLCHoklch(39.79% 0.156 273.3)
XYZxyz(8.3809, 5.7559, 30.8001)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303899 #999130
analogous
#306C99 #303899 #5D3099
triadic
#303899 #993038 #389930
tetradic
#303899 #99306C #999130 #30995D
square
#303899 #99306C #999130 #30995D
split-complementary
#303899 #995D30 #6C9930
monochromatic
#13163C #21276A #303899 #424CC4 #7178D2

Accessibility & contrast

On white

9.76
#303899 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #303899
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303899#FFFFFF#000000##FFFFFF
##3038991.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499C
Deuteranopia (green-blind)
#003F97
Tritanopia (blue-blind)
#005163
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #303899;
/* rgb */ color: rgb(48, 56, 153);
/* oklch */ color: oklch(39.8% 0.156 273.3);
Tailwind
colors: {
  custom: {
    50: '#766eb8',
    500: '#303899',
    950: '#000000',
  },
}
SCSS
$custom: #303899;
$custom-light: #766eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#303899",
  "rgb": {
    "r": 48,
    "g": 56,
    "b": 153
  },
  "hsl": {
    "h": 235.429,
    "s": 52.239,
    "l": 39.412
  },
  "oklch": {
    "l": 0.39794,
    "c": 0.15621,
    "h": 273.3
  },
  "luminance": 0.05757
}

Semantic roles & 50–950 ramp

primary
#303899
secondary
#BAB46B
accent
#D14CDC
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #303899

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

Preview Lab → · Contrast checker → · Palette generator →

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