#303DAF#303DAF

#303DAF is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.7% C 0.180 H 271.3°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#303DAF
RGBrgb(48, 61, 175)
HSLhsl(234, 57%, 44%)
HSVhsv(234, 73%, 69%)
CMYKcmyk(72.6%, 65.1%, 0%, 31.4%)
CIE-LABlab(31.94, 34.20, -62.18)
CIE-LCHlch(31.94, 70.96, 298.81°)
OKLaboklab(42.7% 0.0041 -0.1797)
OKLCHoklch(42.7% 0.18 271.3)
XYZxyz(10.6229, 7.0599, 41.3520)
Luminance0.0706 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303DAF #AFA230
analogous
#307CAF #303DAF #6230AF
triadic
#303DAF #AF303D #3DAF30
tetradic
#303DAF #AF307C #AFA230 #30AF62
square
#303DAF #AF307C #AFA230 #30AF62
split-complementary
#303DAF #AF6230 #7CAF30
monochromatic
#161C4F #232C7F #303DAF #4E5BCE #7E87DC

Accessibility & contrast

On white

8.71
#303DAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#303DAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303DAF
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303DAF#FFFFFF#000000##FFFFFF
##303DAF1.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #303daf;
/* rgb */ color: rgb(48, 61, 175);
/* oklch */ color: oklch(42.7% 0.180 271.3);
Tailwind
colors: {
  custom: {
    50: '#7b72c8',
    500: '#303daf',
    950: '#000000',
  },
}
SCSS
$custom: #303daf;
$custom-light: #7b72c8;
$custom-dark: #000000;
JSON
{
  "hex": "#303daf",
  "rgb": {
    "r": 48,
    "g": 61,
    "b": 175
  },
  "hsl": {
    "h": 233.858,
    "s": 56.951,
    "l": 43.725
  },
  "oklch": {
    "l": 0.42703,
    "c": 0.17973,
    "h": 271.3
  },
  "luminance": 0.07061
}

Semantic roles & 50–950 ramp

primary
#303DAF
secondary
#C4BC76
accent
#D148E0
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #303DAF

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

Preview Lab → · Contrast checker → · Palette generator →

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