#303EAA#303EAA

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

Color values

HEX#303EAA
RGBrgb(48, 62, 170)
HSLhsl(233, 56%, 43%)
HSVhsv(233, 72%, 67%)
CMYKcmyk(71.8%, 63.5%, 0%, 33.3%)
CIE-LABlab(31.75, 31.75, -59.50)
CIE-LCHlch(31.75, 67.44, 298.08°)
OKLaboklab(42.43% 0.0037 -0.1718)
OKLCHoklch(42.43% 0.172 271.2)
XYZxyz(10.1948, 6.9749, 38.8314)
Luminance0.0698 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303EAA #AA9C30
analogous
#307BAA #303EAA #5F30AA
triadic
#303EAA #AA303E #3EAA30
tetradic
#303EAA #AA307B #AA9C30 #30AA5F
square
#303EAA #AA307B #AA9C30 #30AA5F
split-complementary
#303EAA #AA5F30 #7BAA30
monochromatic
#151B4B #232D7A #303EAA #4B5ACC #7B86DA

Accessibility & contrast

On white

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

On black

2.40
#303EAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##303EAA#FFFFFF#000000##FFFFFF
##303EAA1.008.772.408.77
#FFFFFF8.771.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AD
Deuteranopia (green-blind)
#0045A8
Tritanopia (blue-blind)
#005A6E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #303eaa;
/* rgb */ color: rgb(48, 62, 170);
/* oklch */ color: oklch(42.4% 0.172 271.2);
Tailwind
colors: {
  custom: {
    50: '#7973c4',
    500: '#303eaa',
    950: '#000000',
  },
}
SCSS
$custom: #303eaa;
$custom-light: #7973c4;
$custom-dark: #000000;
JSON
{
  "hex": "#303eaa",
  "rgb": {
    "r": 48,
    "g": 62,
    "b": 170
  },
  "hsl": {
    "h": 233.115,
    "s": 55.963,
    "l": 42.745
  },
  "oklch": {
    "l": 0.42426,
    "c": 0.17188,
    "h": 271.2
  },
  "luminance": 0.06976
}

Semantic roles & 50–950 ramp

primary
#303EAA
secondary
#C2B974
accent
#CE49DF
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #303EAA

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

Preview Lab → · Contrast checker → · Palette generator →

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