#3039A4#3039A4

#3039A4 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 41.0% C 0.170 H 272.6°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#3039A4
RGBrgb(48, 57, 164)
HSLhsl(235, 55%, 42%)
HSVhsv(235, 71%, 64%)
CMYKcmyk(70.7%, 65.2%, 0%, 35.7%)
CIE-LABlab(30.00, 32.81, -58.77)
CIE-LCHlch(30.00, 67.31, 299.17°)
OKLaboklab(40.98% 0.0076 -0.1697)
OKLCHoklch(40.98% 0.17 272.6)
XYZxyz(9.3806, 6.2341, 35.8237)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3039A4 #A49B30
analogous
#3073A4 #3039A4 #6130A4
triadic
#3039A4 #A43039 #39A430
tetradic
#3039A4 #A43073 #A49B30 #30A461
square
#3039A4 #A43073 #A49B30 #30A461
split-complementary
#3039A4 #A46130 #73A430
monochromatic
#141845 #222975 #3039A4 #4852C9 #777FD7

Accessibility & contrast

On white

9.35
#3039A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#3039A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3039A4
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3039A4#FFFFFF#000000##FFFFFF
##3039A41.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA7
Deuteranopia (green-blind)
#0041A2
Tritanopia (blue-blind)
#005569
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #3039a4;
/* rgb */ color: rgb(48, 57, 164);
/* oklch */ color: oklch(41.0% 0.170 272.6);
Tailwind
colors: {
  custom: {
    50: '#796fc0',
    500: '#3039a4',
    950: '#000000',
  },
}
SCSS
$custom: #3039a4;
$custom-light: #796fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#3039a4",
  "rgb": {
    "r": 48,
    "g": 57,
    "b": 164
  },
  "hsl": {
    "h": 235.345,
    "s": 54.717,
    "l": 41.569
  },
  "oklch": {
    "l": 0.40977,
    "c": 0.16989,
    "h": 272.6
  },
  "luminance": 0.06235
}

Semantic roles & 50–950 ramp

primary
#3039A4
secondary
#BFB970
accent
#D34ADE
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #3039A4

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

Preview Lab → · Contrast checker → · Palette generator →

#3039A4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva