#303FB8#303FB8

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

Color values

HEX#303FB8
RGBrgb(48, 63, 184)
HSLhsl(233, 59%, 45%)
HSVhsv(233, 74%, 72%)
CMYKcmyk(73.9%, 65.8%, 0%, 27.8%)
CIE-LABlab(33.23, 36.15, -65.41)
CIE-LCHlch(33.23, 74.73, 298.93°)
OKLaboklab(43.89% 0.0022 -0.1891)
OKLCHoklch(43.89% 0.189 270.7)
XYZxyz(11.6452, 7.6429, 46.1996)
Luminance0.0764 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303FB8 #B8A930
analogous
#3083B8 #303FB8 #6530B8
triadic
#303FB8 #B8303F #3FB830
tetradic
#303FB8 #B83083 #B8A930 #30B865
square
#303FB8 #B83083 #B8A930 #30B865
split-complementary
#303FB8 #B86530 #83B830
monochromatic
#171E57 #232E87 #303FB8 #5361D2 #848EDF

Accessibility & contrast

On white

8.30
#303FB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#303FB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303FB8
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303FB8#FFFFFF#000000##FFFFFF
##303FB81.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BC
Deuteranopia (green-blind)
#0048B6
Tritanopia (blue-blind)
#005F76
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #303fb8;
/* rgb */ color: rgb(48, 63, 184);
/* oklch */ color: oklch(43.9% 0.189 270.7);
Tailwind
colors: {
  custom: {
    50: '#7d74ce',
    500: '#303fb8',
    950: '#000000',
  },
}
SCSS
$custom: #303fb8;
$custom-light: #7d74ce;
$custom-dark: #000000;
JSON
{
  "hex": "#303fb8",
  "rgb": {
    "r": 48,
    "g": 63,
    "b": 184
  },
  "hsl": {
    "h": 233.382,
    "s": 58.621,
    "l": 45.49
  },
  "oklch": {
    "l": 0.4389,
    "c": 0.18915,
    "h": 270.7
  },
  "luminance": 0.07644
}

Semantic roles & 50–950 ramp

primary
#303FB8
secondary
#C8C07C
accent
#D146E2
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0814
muted
#7C7B82

Preview Lab

Preview with #303FB8

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

Preview Lab → · Contrast checker → · Palette generator →

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