#303CBA#303CBA

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

Color values

HEX#303CBA
RGBrgb(48, 60, 186)
HSLhsl(235, 59%, 46%)
HSVhsv(235, 74%, 73%)
CMYKcmyk(74.2%, 67.7%, 0%, 27.1%)
CIE-LABlab(32.71, 38.73, -67.44)
CIE-LCHlch(32.71, 77.77, 299.87°)
OKLaboklab(43.57% 0.0039 -0.1951)
OKLCHoklch(43.57% 0.195 271.1)
XYZxyz(11.6947, 7.4040, 47.2576)
Luminance0.0741 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303CBA #BAAE30
analogous
#3081BA #303CBA #6930BA
triadic
#303CBA #BA303C #3CBA30
tetradic
#303CBA #BA3081 #BAAE30 #30BA69
square
#303CBA #BA3081 #BAAE30 #30BA69
split-complementary
#303CBA #BA6930 #81BA30
monochromatic
#171D59 #232C89 #303CBA #545FD3 #858DDF

Accessibility & contrast

On white

8.46
#303CBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#303CBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303CBA
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303CBA#FFFFFF#000000##FFFFFF
##303CBA1.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BE
Deuteranopia (green-blind)
#0046B8
Tritanopia (blue-blind)
#005E76
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #303cba;
/* rgb */ color: rgb(48, 60, 186);
/* oklch */ color: oklch(43.6% 0.195 271.1);
Tailwind
colors: {
  custom: {
    50: '#7d72d0',
    500: '#303cba',
    950: '#000000',
  },
}
SCSS
$custom: #303cba;
$custom-light: #7d72d0;
$custom-dark: #000000;
JSON
{
  "hex": "#303cba",
  "rgb": {
    "r": 48,
    "g": 60,
    "b": 186
  },
  "hsl": {
    "h": 234.783,
    "s": 58.974,
    "l": 45.882
  },
  "oklch": {
    "l": 0.43568,
    "c": 0.19514,
    "h": 271.1
  },
  "luminance": 0.07405
}

Semantic roles & 50–950 ramp

primary
#303CBA
secondary
#C9C27D
accent
#D546E2
background
#F8F6FC
surface
#F0ECF9
border
#CBC7D2
text
#0B0814
muted
#7C7B82

Preview Lab

Preview with #303CBA

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

Preview Lab → · Contrast checker → · Palette generator →

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