#303FB1#303FB1

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

Color values

HEX#303FB1
RGBrgb(48, 63, 177)
HSLhsl(233, 57%, 44%)
HSVhsv(233, 73%, 69%)
CMYKcmyk(72.9%, 64.4%, 0%, 30.6%)
CIE-LABlab(32.61, 33.63, -62.28)
CIE-LCHlch(32.61, 70.78, 298.37°)
OKLaboklab(43.24% 0.0027 -0.18)
OKLCHoklch(43.24% 0.18 270.8)
XYZxyz(10.9295, 7.3566, 42.4304)
Luminance0.0736 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303FB1 #B1A230
analogous
#3080B1 #303FB1 #6230B1
triadic
#303FB1 #B1303F #3FB130
tetradic
#303FB1 #B13080 #B1A230 #30B162
square
#303FB1 #B13080 #B1A230 #30B162
split-complementary
#303FB1 #B16230 #80B130
monochromatic
#161D51 #232E81 #303FB1 #4F5ECF #7F8ADC

Accessibility & contrast

On white

8.50
#303FB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#303FB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303FB1
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303FB1#FFFFFF#000000##FFFFFF
##303FB11.008.502.478.50
#FFFFFF8.501.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B5
Deuteranopia (green-blind)
#0047AF
Tritanopia (blue-blind)
#005D72
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #303fb1;
/* rgb */ color: rgb(48, 63, 177);
/* oklch */ color: oklch(43.2% 0.180 270.8);
Tailwind
colors: {
  custom: {
    50: '#7b74c9',
    500: '#303fb1',
    950: '#000000',
  },
}
SCSS
$custom: #303fb1;
$custom-light: #7b74c9;
$custom-dark: #000000;
JSON
{
  "hex": "#303fb1",
  "rgb": {
    "r": 48,
    "g": 63,
    "b": 177
  },
  "hsl": {
    "h": 233.023,
    "s": 57.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.43243,
    "c": 0.18,
    "h": 270.8
  },
  "luminance": 0.07358
}

Semantic roles & 50–950 ramp

primary
#303FB1
secondary
#C5BC78
accent
#CF47E1
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #303FB1

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

Preview Lab → · Contrast checker → · Palette generator →

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