#303CBD#303CBD

#303CBD is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.9% C 0.199 H 271.0°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#303CBD
RGBrgb(48, 60, 189)
HSLhsl(235, 59%, 46%)
HSVhsv(235, 75%, 74%)
CMYKcmyk(74.6%, 68.3%, 0%, 25.9%)
CIE-LABlab(32.99, 39.79, -68.75)
CIE-LCHlch(32.99, 79.43, 300.06°)
OKLaboklab(43.86% 0.0036 -0.1989)
OKLCHoklch(43.86% 0.199 271)
XYZxyz(12.0170, 7.5329, 48.9549)
Luminance0.0753 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303CBD #BDB130
analogous
#3083BD #303CBD #6B30BD
triadic
#303CBD #BD303C #3CBD30
tetradic
#303CBD #BD3083 #BDB130 #30BD6B
square
#303CBD #BD3083 #BDB130 #30BD6B
split-complementary
#303CBD #BD6B30 #83BD30
monochromatic
#171D5B #242D8C #303CBD #5661D4 #878FE0

Accessibility & contrast

On white

8.38
#303CBD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#303CBD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303CBD
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303CBD#FFFFFF#000000##FFFFFF
##303CBD1.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C1
Deuteranopia (green-blind)
#0047BB
Tritanopia (blue-blind)
#005F77
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #303cbd;
/* rgb */ color: rgb(48, 60, 189);
/* oklch */ color: oklch(43.9% 0.199 271.0);
Tailwind
colors: {
  custom: {
    50: '#7e72d2',
    500: '#303cbd',
    950: '#000000',
  },
}
SCSS
$custom: #303cbd;
$custom-light: #7e72d2;
$custom-dark: #000000;
JSON
{
  "hex": "#303cbd",
  "rgb": {
    "r": 48,
    "g": 60,
    "b": 189
  },
  "hsl": {
    "h": 234.894,
    "s": 59.494,
    "l": 46.471
  },
  "oklch": {
    "l": 0.43858,
    "c": 0.19895,
    "h": 271
  },
  "luminance": 0.07534
}

Semantic roles & 50–950 ramp

primary
#303CBD
secondary
#CAC47F
accent
#D545E3
background
#F8F6FD
surface
#F0ECFA
border
#CBC7D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #303CBD

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

Preview Lab → · Contrast checker → · Palette generator →

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