#303A95#303A95

#303A95 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.8% C 0.148 H 272.9°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#303A95
RGBrgb(48, 58, 149)
HSLhsl(234, 51%, 39%)
HSVhsv(234, 68%, 58%)
CMYKcmyk(67.8%, 61.1%, 0%, 41.6%)
CIE-LABlab(28.96, 26.72, -51.34)
CIE-LCHlch(28.96, 57.88, 297.50°)
OKLaboklab(39.82% 0.0075 -0.1479)
OKLCHoklch(39.82% 0.148 272.9)
XYZxyz(8.1550, 5.8237, 29.1223)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303A95 #958B30
analogous
#306C95 #303A95 #583095
triadic
#303A95 #95303A #3A9530
tetradic
#303A95 #95306C #958B30 #309558
square
#303A95 #95306C #958B30 #309558
split-complementary
#303A95 #955830 #6C9530
monochromatic
#121638 #212867 #303A95 #414DC2 #6F79D1

Accessibility & contrast

On white

9.70
#303A95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#303A95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303A95
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303A95#FFFFFF#000000##FFFFFF
##303A951.009.702.169.70
#FFFFFF9.701.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004998
Deuteranopia (green-blind)
#004093
Tritanopia (blue-blind)
#005161
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #303a95;
/* rgb */ color: rgb(48, 58, 149);
/* oklch */ color: oklch(39.8% 0.148 272.9);
Tailwind
colors: {
  custom: {
    50: '#7570b5',
    500: '#303a95',
    950: '#000000',
  },
}
SCSS
$custom: #303a95;
$custom-light: #7570b5;
$custom-dark: #000000;
JSON
{
  "hex": "#303a95",
  "rgb": {
    "r": 48,
    "g": 58,
    "b": 149
  },
  "hsl": {
    "h": 234.059,
    "s": 51.269,
    "l": 38.627
  },
  "oklch": {
    "l": 0.39819,
    "c": 0.1481,
    "h": 272.9
  },
  "luminance": 0.05824
}

Semantic roles & 50–950 ramp

primary
#303A95
secondary
#B8B069
accent
#CD4DDB
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #303A95

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

Preview Lab → · Contrast checker → · Palette generator →

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