#303985#303985

#303985 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.3% C 0.126 H 273.7°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#303985
RGBrgb(48, 57, 133)
HSLhsl(234, 47%, 35%)
HSVhsv(234, 64%, 52%)
CMYKcmyk(63.9%, 57.1%, 0%, 47.8%)
CIE-LABlab(27.43, 21.53, -43.95)
CIE-LCHlch(27.43, 48.94, 296.10°)
OKLaboklab(38.28% 0.0082 -0.1262)
OKLCHoklch(38.28% 0.126 273.7)
XYZxyz(6.9143, 5.2475, 22.8343)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303985 #857C30
analogous
#306385 #303985 #513085
triadic
#303985 #853039 #398530
tetradic
#303985 #853063 #857C30 #308551
square
#303985 #853063 #857C30 #308551
split-complementary
#303985 #855130 #638530
monochromatic
#10122B #202658 #303985 #404CB2 #6771C8

Accessibility & contrast

On white

10.25
#303985 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#303985 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303985
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303985#FFFFFF#000000##FFFFFF
##3039851.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004588
Deuteranopia (green-blind)
#003D83
Tritanopia (blue-blind)
#004B59
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #303985;
/* rgb */ color: rgb(48, 57, 133);
/* oklch */ color: oklch(38.3% 0.126 273.7);
Tailwind
colors: {
  custom: {
    50: '#726fa9',
    500: '#303985',
    950: '#000000',
  },
}
SCSS
$custom: #303985;
$custom-light: #726fa9;
$custom-dark: #000000;
JSON
{
  "hex": "#303985",
  "rgb": {
    "r": 48,
    "g": 57,
    "b": 133
  },
  "hsl": {
    "h": 233.647,
    "s": 46.961,
    "l": 35.49
  },
  "oklch": {
    "l": 0.38278,
    "c": 0.12647,
    "h": 273.7
  },
  "luminance": 0.05248
}

Semantic roles & 50–950 ramp

primary
#303985
secondary
#AFA761
accent
#C851D7
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #303985

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

Preview Lab → · Contrast checker → · Palette generator →

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