#303C95#303C95

#303C95 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.2% C 0.145 H 272.3°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#303C95
RGBrgb(48, 60, 149)
HSLhsl(233, 51%, 39%)
HSVhsv(233, 68%, 58%)
CMYKcmyk(67.8%, 59.7%, 0%, 41.6%)
CIE-LABlab(29.49, 25.39, -50.49)
CIE-LCHlch(29.49, 56.51, 296.70°)
OKLaboklab(40.21% 0.0057 -0.1454)
OKLCHoklch(40.21% 0.146 272.3)
XYZxyz(8.2578, 6.0293, 29.1565)
Luminance0.0603 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303C95 #958930
analogous
#306E95 #303C95 #563095
triadic
#303C95 #95303C #3C9530
tetradic
#303C95 #95306E #958930 #309556
square
#303C95 #95306E #958930 #309556
split-complementary
#303C95 #955630 #6E9530
monochromatic
#121738 #212967 #303C95 #4150C2 #6F7AD1

Accessibility & contrast

On white

9.52
#303C95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#303C95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303C95
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303C95#FFFFFF#000000##FFFFFF
##303C951.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A98
Deuteranopia (green-blind)
#004193
Tritanopia (blue-blind)
#005262
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #303c95;
/* rgb */ color: rgb(48, 60, 149);
/* oklch */ color: oklch(40.2% 0.145 272.3);
Tailwind
colors: {
  custom: {
    50: '#7571b5',
    500: '#303c95',
    950: '#000000',
  },
}
SCSS
$custom: #303c95;
$custom-light: #7571b5;
$custom-dark: #000000;
JSON
{
  "hex": "#303c95",
  "rgb": {
    "r": 48,
    "g": 60,
    "b": 149
  },
  "hsl": {
    "h": 232.871,
    "s": 51.269,
    "l": 38.627
  },
  "oklch": {
    "l": 0.40207,
    "c": 0.1455,
    "h": 272.3
  },
  "luminance": 0.0603
}

Semantic roles & 50–950 ramp

primary
#303C95
secondary
#B8AF69
accent
#CA4DDB
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #303C95

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

Preview Lab → · Contrast checker → · Palette generator →

#303C95 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva