#4030B7#4030B7

#4030B7 is a dark, highly saturated blue. Relative luminance 0.066; OKLCH L 42.5% C 0.200 H 278.9°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#4030B7
RGBrgb(64, 48, 183)
HSLhsl(247, 58%, 45%)
HSVhsv(247, 74%, 72%)
CMYKcmyk(65%, 73.8%, 0%, 28.2%)
CIE-LABlab(30.93, 46.55, -68.56)
CIE-LCHlch(30.93, 82.87, 304.18°)
OKLaboklab(42.48% 0.0311 -0.1979)
OKLCHoklch(42.48% 0.2 278.9)
XYZxyz(11.7158, 6.6218, 45.4513)
Luminance0.0662 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4030B7 #A7B730
analogous
#3063B7 #4030B7 #8330B7
triadic
#4030B7 #B74030 #30B740
tetradic
#4030B7 #B73063 #A7B730 #30B783
square
#4030B7 #B73063 #A7B730 #30B783
split-complementary
#4030B7 #B78330 #63B730
monochromatic
#1E1756 #2F2387 #4030B7 #6252D2 #8E83DE

Accessibility & contrast

On white

9.03
#4030B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4030B7
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4030B7#FFFFFF#000000##FFFFFF
##4030B71.009.032.329.03
#FFFFFF9.031.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBB
Deuteranopia (green-blind)
#0043B5
Tritanopia (blue-blind)
#005671
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4030b7;
/* rgb */ color: rgb(64, 48, 183);
/* oklch */ color: oklch(42.5% 0.200 278.9);
Tailwind
colors: {
  custom: {
    50: '#846bce',
    500: '#4030b7',
    950: '#000000',
  },
}
SCSS
$custom: #4030b7;
$custom-light: #846bce;
$custom-dark: #000000;
JSON
{
  "hex": "#4030b7",
  "rgb": {
    "r": 64,
    "g": 48,
    "b": 183
  },
  "hsl": {
    "h": 247.111,
    "s": 58.442,
    "l": 45.294
  },
  "oklch": {
    "l": 0.4248,
    "c": 0.20034,
    "h": 278.9
  },
  "luminance": 0.06623
}

Semantic roles & 50–950 ramp

primary
#4030B7
secondary
#BFC87B
accent
#E246CF
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0714
muted
#7D7A82

Preview Lab

Preview with #4030B7

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

Preview Lab → · Contrast checker → · Palette generator →

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