#4030BA#4030BA

#4030BA is a dark, highly saturated blue. Relative luminance 0.067; OKLCH L 42.8% C 0.204 H 278.6°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#4030BA
RGBrgb(64, 48, 186)
HSLhsl(247, 59%, 46%)
HSVhsv(247, 74%, 73%)
CMYKcmyk(65.6%, 74.2%, 0%, 27.1%)
CIE-LABlab(31.23, 47.49, -69.85)
CIE-LCHlch(31.23, 84.46, 304.21°)
OKLaboklab(42.78% 0.0304 -0.2017)
OKLCHoklch(42.78% 0.204 278.6)
XYZxyz(12.0314, 6.7481, 47.1133)
Luminance0.0675 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4030BA #AABA30
analogous
#3065BA #4030BA #8530BA
triadic
#4030BA #BA4030 #30BA40
tetradic
#4030BA #BA3065 #AABA30 #30BA85
square
#4030BA #BA3065 #AABA30 #30BA85
split-complementary
#4030BA #BA8530 #65BA30
monochromatic
#1F1759 #2F2389 #4030BA #6354D3 #8F85DF

Accessibility & contrast

On white

8.94
#4030BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#4030BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4030BA
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4030BA#FFFFFF#000000##FFFFFF
##4030BA1.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBE
Deuteranopia (green-blind)
#0044B7
Tritanopia (blue-blind)
#005773
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4030ba;
/* rgb */ color: rgb(64, 48, 186);
/* oklch */ color: oklch(42.8% 0.204 278.6);
Tailwind
colors: {
  custom: {
    50: '#856bd0',
    500: '#4030ba',
    950: '#000000',
  },
}
SCSS
$custom: #4030ba;
$custom-light: #856bd0;
$custom-dark: #000000;
JSON
{
  "hex": "#4030ba",
  "rgb": {
    "r": 64,
    "g": 48,
    "b": 186
  },
  "hsl": {
    "h": 246.957,
    "s": 58.974,
    "l": 45.882
  },
  "oklch": {
    "l": 0.42779,
    "c": 0.20397,
    "h": 278.6
  },
  "luminance": 0.06749
}

Semantic roles & 50–950 ramp

primary
#4030BA
secondary
#C0C97D
accent
#E246D0
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0714
muted
#7D7A82

Preview Lab

Preview with #4030BA

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

Preview Lab → · Contrast checker → · Palette generator →

#4030BA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva