#303FAF#303FAF

#303FAF is a dark, vivid blue. Relative luminance 0.073; OKLCH L 43.1% C 0.177 H 270.9°. Best body text is #FFFFFF at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#303FAF
RGBrgb(48, 63, 175)
HSLhsl(233, 57%, 44%)
HSVhsv(233, 73%, 69%)
CMYKcmyk(72.6%, 64%, 0%, 31.4%)
CIE-LABlab(32.43, 32.91, -61.38)
CIE-LCHlch(32.43, 69.65, 298.20°)
OKLaboklab(43.06% 0.0028 -0.1773)
OKLCHoklch(43.06% 0.177 270.9)
XYZxyz(10.7317, 7.2774, 41.3882)
Luminance0.0728 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303FAF #AFA030
analogous
#307EAF #303FAF #6030AF
triadic
#303FAF #AF303F #3FAF30
tetradic
#303FAF #AF307E #AFA030 #30AF60
square
#303FAF #AF307E #AFA030 #30AF60
split-complementary
#303FAF #AF6030 #7EAF30
monochromatic
#161C4F #232E7F #303FAF #4E5DCE #7E89DC

Accessibility & contrast

On white

8.55
#303FAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#303FAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303FAF
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303FAF#FFFFFF#000000##FFFFFF
##303FAF1.008.552.468.55
#FFFFFF8.551.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B3
Deuteranopia (green-blind)
#0046AD
Tritanopia (blue-blind)
#005C71
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #303faf;
/* rgb */ color: rgb(48, 63, 175);
/* oklch */ color: oklch(43.1% 0.177 270.9);
Tailwind
colors: {
  custom: {
    50: '#7b74c8',
    500: '#303faf',
    950: '#000000',
  },
}
SCSS
$custom: #303faf;
$custom-light: #7b74c8;
$custom-dark: #000000;
JSON
{
  "hex": "#303faf",
  "rgb": {
    "r": 48,
    "g": 63,
    "b": 175
  },
  "hsl": {
    "h": 232.913,
    "s": 56.951,
    "l": 43.725
  },
  "oklch": {
    "l": 0.43061,
    "c": 0.17735,
    "h": 270.9
  },
  "luminance": 0.07279
}

Semantic roles & 50–950 ramp

primary
#303FAF
secondary
#C4BB76
accent
#CE48E0
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #303FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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