#303CBB#303CBB

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

Color values

HEX#303CBB
RGBrgb(48, 60, 187)
HSLhsl(235, 59%, 46%)
HSVhsv(235, 74%, 73%)
CMYKcmyk(74.3%, 67.9%, 0%, 26.7%)
CIE-LABlab(32.80, 39.08, -67.88)
CIE-LCHlch(32.80, 78.33, 299.93°)
OKLaboklab(43.66% 0.0038 -0.1964)
OKLCHoklch(43.66% 0.196 271.1)
XYZxyz(11.8014, 7.4467, 47.8195)
Luminance0.0745 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303CBB #BBAF30
analogous
#3081BB #303CBB #6930BB
triadic
#303CBB #BB303C #3CBB30
tetradic
#303CBB #BB3081 #BBAF30 #30BB69
square
#303CBB #BB3081 #BBAF30 #30BB69
split-complementary
#303CBB #BB6930 #81BB30
monochromatic
#171D5A #232C8A #303CBB #5560D3 #868DE0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##303CBB#FFFFFF#000000##FFFFFF
##303CBB1.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)
#0054BF
Deuteranopia (green-blind)
#0047B9
Tritanopia (blue-blind)
#005E76
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #303cbb;
/* rgb */ color: rgb(48, 60, 187);
/* oklch */ color: oklch(43.7% 0.196 271.1);
Tailwind
colors: {
  custom: {
    50: '#7e72d1',
    500: '#303cbb',
    950: '#000000',
  },
}
SCSS
$custom: #303cbb;
$custom-light: #7e72d1;
$custom-dark: #000000;
JSON
{
  "hex": "#303cbb",
  "rgb": {
    "r": 48,
    "g": 60,
    "b": 187
  },
  "hsl": {
    "h": 234.82,
    "s": 59.149,
    "l": 46.078
  },
  "oklch": {
    "l": 0.43664,
    "c": 0.19641,
    "h": 271.1
  },
  "luminance": 0.07448
}

Semantic roles & 50–950 ramp

primary
#303CBB
secondary
#C9C37D
accent
#D545E2
background
#F8F6FD
surface
#F0ECFA
border
#CBC7D3
text
#0B0814
muted
#7C7B83

Preview Lab

Preview with #303CBB

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

Preview Lab → · Contrast checker → · Palette generator →

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