#303EAC#303EAC

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

Color values

HEX#303EAC
RGBrgb(48, 62, 172)
HSLhsl(233, 56%, 43%)
HSVhsv(233, 72%, 67%)
CMYKcmyk(72.1%, 64%, 0%, 32.5%)
CIE-LABlab(31.92, 32.47, -60.42)
CIE-LCHlch(31.92, 68.59, 298.26°)
OKLaboklab(42.61% 0.0036 -0.1745)
OKLCHoklch(42.61% 0.175 271.2)
XYZxyz(10.3854, 7.0511, 39.8354)
Luminance0.0705 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303EAC #AC9E30
analogous
#307CAC #303EAC #6030AC
triadic
#303EAC #AC303E #3EAC30
tetradic
#303EAC #AC307C #AC9E30 #30AC60
square
#303EAC #AC307C #AC9E30 #30AC60
split-complementary
#303EAC #AC6030 #7CAC30
monochromatic
#151C4C #232D7C #303EAC #4C5BCD #7C87DA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##303EAC#FFFFFF#000000##FFFFFF
##303EAC1.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)
#0051B0
Deuteranopia (green-blind)
#0045AA
Tritanopia (blue-blind)
#005A6F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #303eac;
/* rgb */ color: rgb(48, 62, 172);
/* oklch */ color: oklch(42.6% 0.175 271.2);
Tailwind
colors: {
  custom: {
    50: '#7a73c6',
    500: '#303eac',
    950: '#000000',
  },
}
SCSS
$custom: #303eac;
$custom-light: #7a73c6;
$custom-dark: #000000;
JSON
{
  "hex": "#303eac",
  "rgb": {
    "r": 48,
    "g": 62,
    "b": 172
  },
  "hsl": {
    "h": 233.226,
    "s": 56.364,
    "l": 43.137
  },
  "oklch": {
    "l": 0.42607,
    "c": 0.17456,
    "h": 271.2
  },
  "luminance": 0.07052
}

Semantic roles & 50–950 ramp

primary
#303EAC
secondary
#C3BA75
accent
#CF48E0
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #303EAC

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

Preview Lab → · Contrast checker → · Palette generator →

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