#303FBB#303FBB

#303FBB is a dark, vivid blue. Relative luminance 0.078; OKLCH L 44.2% C 0.193 H 270.6°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#303FBB
RGBrgb(48, 63, 187)
HSLhsl(234, 59%, 46%)
HSVhsv(234, 74%, 73%)
CMYKcmyk(74.3%, 66.3%, 0%, 26.7%)
CIE-LABlab(33.50, 37.22, -66.74)
CIE-LCHlch(33.50, 76.41, 299.15°)
OKLaboklab(44.17% 0.002 -0.193)
OKLCHoklch(44.17% 0.193 270.6)
XYZxyz(11.9630, 7.7700, 47.8734)
Luminance0.0777 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303FBB #BBAC30
analogous
#3084BB #303FBB #6630BB
triadic
#303FBB #BB303F #3FBB30
tetradic
#303FBB #BB3084 #BBAC30 #30BB66
square
#303FBB #BB3084 #BBAC30 #30BB66
split-complementary
#303FBB #BB6630 #84BB30
monochromatic
#171E5A #232F8A #303FBB #5563D3 #868FE0

Accessibility & contrast

On white

8.22
#303FBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#303FBB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303FBB
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303FBB#FFFFFF#000000##FFFFFF
##303FBB1.008.222.558.22
#FFFFFF8.221.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BF
Deuteranopia (green-blind)
#0048B9
Tritanopia (blue-blind)
#006077
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #303fbb;
/* rgb */ color: rgb(48, 63, 187);
/* oklch */ color: oklch(44.2% 0.193 270.6);
Tailwind
colors: {
  custom: {
    50: '#7d74d1',
    500: '#303fbb',
    950: '#000000',
  },
}
SCSS
$custom: #303fbb;
$custom-light: #7d74d1;
$custom-dark: #000000;
JSON
{
  "hex": "#303fbb",
  "rgb": {
    "r": 48,
    "g": 63,
    "b": 187
  },
  "hsl": {
    "h": 233.525,
    "s": 59.149,
    "l": 46.078
  },
  "oklch": {
    "l": 0.44171,
    "c": 0.19303,
    "h": 270.6
  },
  "luminance": 0.07771
}

Semantic roles & 50–950 ramp

primary
#303FBB
secondary
#C9C17D
accent
#D145E2
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0B0814
muted
#7C7B82

Preview Lab

Preview with #303FBB

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

Preview Lab → · Contrast checker → · Palette generator →

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