#303994#303994

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

Color values

HEX#303994
RGBrgb(48, 57, 148)
HSLhsl(235, 51%, 38%)
HSVhsv(235, 68%, 58%)
CMYKcmyk(67.6%, 61.5%, 0%, 42%)
CIE-LABlab(28.62, 27.02, -51.28)
CIE-LCHlch(28.62, 57.96, 297.79°)
OKLaboklab(39.54% 0.0084 -0.1478)
OKLCHoklch(39.54% 0.148 273.2)
XYZxyz(8.0256, 5.6920, 28.6870)
Luminance0.0569 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303994 #948B30
analogous
#306B94 #303994 #593094
triadic
#303994 #943039 #399430
tetradic
#303994 #94306B #948B30 #309459
square
#303994 #94306B #948B30 #309459
split-complementary
#303994 #945930 #6B9430
monochromatic
#121538 #212766 #303994 #404CC1 #6E77D0

Accessibility & contrast

On white

9.82
#303994 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#303994 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303994
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303994#FFFFFF#000000##FFFFFF
##3039941.009.822.149.82
#FFFFFF9.821.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004897
Deuteranopia (green-blind)
#003F92
Tritanopia (blue-blind)
#005061
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #303994;
/* rgb */ color: rgb(48, 57, 148);
/* oklch */ color: oklch(39.5% 0.148 273.2);
Tailwind
colors: {
  custom: {
    50: '#756fb4',
    500: '#303994',
    950: '#000000',
  },
}
SCSS
$custom: #303994;
$custom-light: #756fb4;
$custom-dark: #000000;
JSON
{
  "hex": "#303994",
  "rgb": {
    "r": 48,
    "g": 57,
    "b": 148
  },
  "hsl": {
    "h": 234.6,
    "s": 51.02,
    "l": 38.431
  },
  "oklch": {
    "l": 0.39541,
    "c": 0.148,
    "h": 273.2
  },
  "luminance": 0.05693
}

Semantic roles & 50–950 ramp

primary
#303994
secondary
#B8B068
accent
#CE4DDA
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #303994

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

Preview Lab → · Contrast checker → · Palette generator →

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