#303FA7#303FA7

#303FA7 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.3% C 0.167 H 271.1°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#303FA7
RGBrgb(48, 63, 167)
HSLhsl(232, 55%, 42%)
HSVhsv(232, 71%, 65%)
CMYKcmyk(71.3%, 62.3%, 0%, 34.5%)
CIE-LABlab(31.74, 30.01, -57.71)
CIE-LCHlch(31.74, 65.05, 297.47°)
OKLaboklab(42.34% 0.0031 -0.1666)
OKLCHoklch(42.34% 0.167 271.1)
XYZxyz(9.9691, 6.9724, 37.3722)
Luminance0.0697 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303FA7 #A79830
analogous
#307BA7 #303FA7 #5D30A7
triadic
#303FA7 #A7303F #3FA730
tetradic
#303FA7 #A7307B #A79830 #30A75D
square
#303FA7 #A7307B #A79830 #30A75D
split-complementary
#303FA7 #A75D30 #7BA730
monochromatic
#151B48 #222D77 #303FA7 #495ACB #7985D8

Accessibility & contrast

On white

8.77
#303FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #303FA7
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303FA7#FFFFFF#000000##FFFFFF
##303FA71.008.772.398.77
#FFFFFF8.771.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AA
Deuteranopia (green-blind)
#0045A5
Tritanopia (blue-blind)
#00596D
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #303fa7;
/* rgb */ color: rgb(48, 63, 167);
/* oklch */ color: oklch(42.3% 0.167 271.1);
Tailwind
colors: {
  custom: {
    50: '#7974c2',
    500: '#303fa7',
    950: '#000000',
  },
}
SCSS
$custom: #303fa7;
$custom-light: #7974c2;
$custom-dark: #000000;
JSON
{
  "hex": "#303fa7",
  "rgb": {
    "r": 48,
    "g": 63,
    "b": 167
  },
  "hsl": {
    "h": 232.437,
    "s": 55.349,
    "l": 42.157
  },
  "oklch": {
    "l": 0.42343,
    "c": 0.16662,
    "h": 271.1
  },
  "luminance": 0.06973
}

Semantic roles & 50–950 ramp

primary
#303FA7
secondary
#C1B772
accent
#CC49DF
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #303FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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