#303FB3#303FB3

#303FB3 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.4% C 0.183 H 270.8°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#303FB3
RGBrgb(48, 63, 179)
HSLhsl(233, 58%, 45%)
HSVhsv(233, 73%, 70%)
CMYKcmyk(73.2%, 64.8%, 0%, 29.8%)
CIE-LABlab(32.78, 34.36, -63.18)
CIE-LCHlch(32.78, 71.92, 298.54°)
OKLaboklab(43.43% 0.0025 -0.1826)
OKLCHoklch(43.43% 0.183 270.8)
XYZxyz(11.1303, 7.4369, 43.4880)
Luminance0.0744 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303FB3 #B3A430
analogous
#3081B3 #303FB3 #6330B3
triadic
#303FB3 #B3303F #3FB330
tetradic
#303FB3 #B33081 #B3A430 #30B363
square
#303FB3 #B33081 #B3A430 #30B363
split-complementary
#303FB3 #B36330 #81B330
monochromatic
#161D52 #232E83 #303FB3 #505FD0 #808BDD

Accessibility & contrast

On white

8.44
#303FB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#303FB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303FB3
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303FB3#FFFFFF#000000##FFFFFF
##303FB31.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B7
Deuteranopia (green-blind)
#0047B1
Tritanopia (blue-blind)
#005D73
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #303fb3;
/* rgb */ color: rgb(48, 63, 179);
/* oklch */ color: oklch(43.4% 0.183 270.8);
Tailwind
colors: {
  custom: {
    50: '#7b74cb',
    500: '#303fb3',
    950: '#000000',
  },
}
SCSS
$custom: #303fb3;
$custom-light: #7b74cb;
$custom-dark: #000000;
JSON
{
  "hex": "#303fb3",
  "rgb": {
    "r": 48,
    "g": 63,
    "b": 179
  },
  "hsl": {
    "h": 233.13,
    "s": 57.709,
    "l": 44.51
  },
  "oklch": {
    "l": 0.43426,
    "c": 0.18263,
    "h": 270.8
  },
  "luminance": 0.07438
}

Semantic roles & 50–950 ramp

primary
#303FB3
secondary
#C6BD79
accent
#CF47E1
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #303FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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