#303FB6#303FB6

#303FB6 is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.7% C 0.187 H 270.7°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#303FB6
RGBrgb(48, 63, 182)
HSLhsl(233, 58%, 45%)
HSVhsv(233, 74%, 71%)
CMYKcmyk(73.6%, 65.4%, 0%, 28.6%)
CIE-LABlab(33.05, 35.43, -64.52)
CIE-LCHlch(33.05, 73.61, 298.77°)
OKLaboklab(43.7% 0.0024 -0.1865)
OKLCHoklch(43.7% 0.187 270.7)
XYZxyz(11.4371, 7.5596, 45.1033)
Luminance0.0756 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303FB6 #B6A730
analogous
#3082B6 #303FB6 #6430B6
triadic
#303FB6 #B6303F #3FB630
tetradic
#303FB6 #B63082 #B6A730 #30B664
square
#303FB6 #B63082 #B6A730 #30B664
split-complementary
#303FB6 #B66430 #82B630
monochromatic
#161D55 #232E86 #303FB6 #5260D1 #828DDE

Accessibility & contrast

On white

8.36
#303FB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#303FB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303FB6
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303FB6#FFFFFF#000000##FFFFFF
##303FB61.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BA
Deuteranopia (green-blind)
#0047B4
Tritanopia (blue-blind)
#005E75
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #303fb6;
/* rgb */ color: rgb(48, 63, 182);
/* oklch */ color: oklch(43.7% 0.187 270.7);
Tailwind
colors: {
  custom: {
    50: '#7c74cd',
    500: '#303fb6',
    950: '#000000',
  },
}
SCSS
$custom: #303fb6;
$custom-light: #7c74cd;
$custom-dark: #000000;
JSON
{
  "hex": "#303fb6",
  "rgb": {
    "r": 48,
    "g": 63,
    "b": 182
  },
  "hsl": {
    "h": 233.284,
    "s": 58.261,
    "l": 45.098
  },
  "oklch": {
    "l": 0.43704,
    "c": 0.18655,
    "h": 270.7
  },
  "luminance": 0.07561
}

Semantic roles & 50–950 ramp

primary
#303FB6
secondary
#C7BF7B
accent
#D046E1
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0814
muted
#7C7B82

Preview Lab

Preview with #303FB6

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

Preview Lab → · Contrast checker → · Palette generator →

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