#4030B6#4030B6

#4030B6 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 42.4% C 0.199 H 279.0°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#4030B6
RGBrgb(64, 48, 182)
HSLhsl(247, 58%, 45%)
HSVhsv(247, 74%, 71%)
CMYKcmyk(64.8%, 73.6%, 0%, 28.6%)
CIE-LABlab(30.83, 46.24, -68.13)
CIE-LCHlch(30.83, 82.34, 304.17°)
OKLaboklab(42.38% 0.0313 -0.1967)
OKLCHoklch(42.38% 0.199 279)
XYZxyz(11.6121, 6.5804, 44.9051)
Luminance0.0658 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4030B6 #A6B630
analogous
#3063B6 #4030B6 #8330B6
triadic
#4030B6 #B64030 #30B640
tetradic
#4030B6 #B63063 #A6B630 #30B683
square
#4030B6 #B63063 #A6B630 #30B683
split-complementary
#4030B6 #B68330 #63B630
monochromatic
#1E1655 #2F2386 #4030B6 #6152D1 #8D82DE

Accessibility & contrast

On white

9.07
#4030B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#4030B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4030B6
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4030B6#FFFFFF#000000##FFFFFF
##4030B61.009.072.329.07
#FFFFFF9.071.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBA
Deuteranopia (green-blind)
#0043B4
Tritanopia (blue-blind)
#005670
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4030b6;
/* rgb */ color: rgb(64, 48, 182);
/* oklch */ color: oklch(42.4% 0.199 279.0);
Tailwind
colors: {
  custom: {
    50: '#846bcd',
    500: '#4030b6',
    950: '#000000',
  },
}
SCSS
$custom: #4030b6;
$custom-light: #846bcd;
$custom-dark: #000000;
JSON
{
  "hex": "#4030b6",
  "rgb": {
    "r": 64,
    "g": 48,
    "b": 182
  },
  "hsl": {
    "h": 247.164,
    "s": 58.261,
    "l": 45.098
  },
  "oklch": {
    "l": 0.42381,
    "c": 0.19913,
    "h": 279
  },
  "luminance": 0.06581
}

Semantic roles & 50–950 ramp

primary
#4030B6
secondary
#BEC77B
accent
#E146CF
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0714
muted
#7D7A82

Preview Lab

Preview with #4030B6

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

Preview Lab → · Contrast checker → · Palette generator →

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