#303BBB#303BBB

#303BBB is a dark, vivid blue. Relative luminance 0.073; OKLCH L 43.5% C 0.198 H 271.3°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#303BBB
RGBrgb(48, 59, 187)
HSLhsl(235, 59%, 46%)
HSVhsv(235, 74%, 73%)
CMYKcmyk(74.3%, 68.4%, 0%, 26.7%)
CIE-LABlab(32.58, 39.70, -68.26)
CIE-LCHlch(32.58, 78.96, 300.18°)
OKLaboklab(43.5% 0.0043 -0.1975)
OKLCHoklch(43.5% 0.198 271.3)
XYZxyz(11.7495, 7.3429, 47.8022)
Luminance0.0734 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303BBB #BBB030
analogous
#3080BB #303BBB #6A30BB
triadic
#303BBB #BB303B #3BBB30
tetradic
#303BBB #BB3080 #BBB030 #30BB6A
square
#303BBB #BB3080 #BBB030 #30BB6A
split-complementary
#303BBB #BB6A30 #80BB30
monochromatic
#171C5A #232C8A #303BBB #555FD3 #868DE0

Accessibility & contrast

On white

8.51
#303BBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #303BBB
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303BBB#FFFFFF#000000##FFFFFF
##303BBB1.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BF
Deuteranopia (green-blind)
#0046B9
Tritanopia (blue-blind)
#005E76
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #303bbb;
/* rgb */ color: rgb(48, 59, 187);
/* oklch */ color: oklch(43.5% 0.198 271.3);
Tailwind
colors: {
  custom: {
    50: '#7e71d1',
    500: '#303bbb',
    950: '#000000',
  },
}
SCSS
$custom: #303bbb;
$custom-light: #7e71d1;
$custom-dark: #000000;
JSON
{
  "hex": "#303bbb",
  "rgb": {
    "r": 48,
    "g": 59,
    "b": 187
  },
  "hsl": {
    "h": 235.252,
    "s": 59.149,
    "l": 46.078
  },
  "oklch": {
    "l": 0.43499,
    "c": 0.19752,
    "h": 271.3
  },
  "luminance": 0.07344
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #303BBB

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

Preview Lab → · Contrast checker → · Palette generator →

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