#303FA2#303FA2

#303FA2 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.9% C 0.160 H 271.1°. Best body text is #FFFFFF at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#303FA2
RGBrgb(48, 63, 162)
HSLhsl(232, 54%, 41%)
HSVhsv(232, 70%, 64%)
CMYKcmyk(70.4%, 61.1%, 0%, 36.5%)
CIE-LABlab(31.33, 28.18, -55.39)
CIE-LCHlch(31.33, 62.14, 296.96°)
OKLaboklab(41.9% 0.0032 -0.1597)
OKLCHoklch(41.9% 0.16 271.1)
XYZxyz(9.5158, 6.7911, 34.9847)
Luminance0.0679 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303FA2 #A29330
analogous
#3078A2 #303FA2 #5A30A2
triadic
#303FA2 #A2303F #3FA230
tetradic
#303FA2 #A23078 #A29330 #30A25A
square
#303FA2 #A23078 #A29330 #30A25A
split-complementary
#303FA2 #A25A30 #78A230
monochromatic
#141A44 #222D73 #303FA2 #4758C8 #7683D6

Accessibility & contrast

On white

8.90
#303FA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#303FA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303FA2
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303FA2#FFFFFF#000000##FFFFFF
##303FA21.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA5
Deuteranopia (green-blind)
#0045A0
Tritanopia (blue-blind)
#00586A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #303fa2;
/* rgb */ color: rgb(48, 63, 162);
/* oklch */ color: oklch(41.9% 0.160 271.1);
Tailwind
colors: {
  custom: {
    50: '#7874be',
    500: '#303fa2',
    950: '#000000',
  },
}
SCSS
$custom: #303fa2;
$custom-light: #7874be;
$custom-dark: #000000;
JSON
{
  "hex": "#303fa2",
  "rgb": {
    "r": 48,
    "g": 63,
    "b": 162
  },
  "hsl": {
    "h": 232.105,
    "s": 54.286,
    "l": 41.176
  },
  "oklch": {
    "l": 0.41904,
    "c": 0.15978,
    "h": 271.1
  },
  "luminance": 0.06792
}

Semantic roles & 50–950 ramp

primary
#303FA2
secondary
#BEB46F
accent
#CA4ADE
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #303FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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