#303CAF#303CAF

#303CAF is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.5% C 0.181 H 271.5°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#303CAF
RGBrgb(48, 60, 175)
HSLhsl(234, 57%, 44%)
HSVhsv(234, 73%, 69%)
CMYKcmyk(72.6%, 65.7%, 0%, 31.4%)
CIE-LABlab(31.70, 34.83, -62.57)
CIE-LCHlch(31.70, 71.61, 299.10°)
OKLaboklab(42.53% 0.0048 -0.1808)
OKLCHoklch(42.53% 0.181 271.5)
XYZxyz(10.5700, 6.9542, 41.3344)
Luminance0.0696 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303CAF #AFA330
analogous
#307BAF #303CAF #6330AF
triadic
#303CAF #AF303C #3CAF30
tetradic
#303CAF #AF307B #AFA330 #30AF63
square
#303CAF #AF307B #AFA330 #30AF63
split-complementary
#303CAF #AF6330 #7BAF30
monochromatic
#161B4F #232C7F #303CAF #4E5ACE #7E87DC

Accessibility & contrast

On white

8.78
#303CAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#303CAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303CAF
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303CAF#FFFFFF#000000##FFFFFF
##303CAF1.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B3
Deuteranopia (green-blind)
#0045AD
Tritanopia (blue-blind)
#005A70
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #303caf;
/* rgb */ color: rgb(48, 60, 175);
/* oklch */ color: oklch(42.5% 0.181 271.5);
Tailwind
colors: {
  custom: {
    50: '#7b72c8',
    500: '#303caf',
    950: '#000000',
  },
}
SCSS
$custom: #303caf;
$custom-light: #7b72c8;
$custom-dark: #000000;
JSON
{
  "hex": "#303caf",
  "rgb": {
    "r": 48,
    "g": 60,
    "b": 175
  },
  "hsl": {
    "h": 234.331,
    "s": 56.951,
    "l": 43.725
  },
  "oklch": {
    "l": 0.42527,
    "c": 0.1809,
    "h": 271.5
  },
  "luminance": 0.06955
}

Semantic roles & 50–950 ramp

primary
#303CAF
secondary
#C4BD76
accent
#D248E0
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #303CAF

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

Preview Lab → · Contrast checker → · Palette generator →

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