#303EAB#303EAB

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

Color values

HEX#303EAB
RGBrgb(48, 62, 171)
HSLhsl(233, 56%, 43%)
HSVhsv(233, 72%, 67%)
CMYKcmyk(71.9%, 63.7%, 0%, 32.9%)
CIE-LABlab(31.84, 32.11, -59.96)
CIE-LCHlch(31.84, 68.02, 298.17°)
OKLaboklab(42.52% 0.0036 -0.1732)
OKLCHoklch(42.52% 0.173 271.2)
XYZxyz(10.2897, 7.0129, 39.3315)
Luminance0.0701 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303EAB #AB9D30
analogous
#307BAB #303EAB #6030AB
triadic
#303EAB #AB303E #3EAB30
tetradic
#303EAB #AB307B #AB9D30 #30AB60
square
#303EAB #AB307B #AB9D30 #30AB60
split-complementary
#303EAB #AB6030 #7BAB30
monochromatic
#151B4B #232D7B #303EAB #4C5ACD #7B86DA

Accessibility & contrast

On white

8.74
#303EAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #303EAB
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303EAB#FFFFFF#000000##FFFFFF
##303EAB1.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AF
Deuteranopia (green-blind)
#0045A9
Tritanopia (blue-blind)
#005A6E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #303eab;
/* rgb */ color: rgb(48, 62, 171);
/* oklch */ color: oklch(42.5% 0.173 271.2);
Tailwind
colors: {
  custom: {
    50: '#7a73c5',
    500: '#303eab',
    950: '#000000',
  },
}
SCSS
$custom: #303eab;
$custom-light: #7a73c5;
$custom-dark: #000000;
JSON
{
  "hex": "#303eab",
  "rgb": {
    "r": 48,
    "g": 62,
    "b": 171
  },
  "hsl": {
    "h": 233.171,
    "s": 56.164,
    "l": 42.941
  },
  "oklch": {
    "l": 0.42517,
    "c": 0.17322,
    "h": 271.2
  },
  "luminance": 0.07014
}

Semantic roles & 50–950 ramp

primary
#303EAB
secondary
#C3BA74
accent
#CE48DF
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #303EAB

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

Preview Lab → · Contrast checker → · Palette generator →

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