#4030DB#4030DB

#4030DB is a mid, highly saturated blue. Relative luminance 0.083; OKLCH L 46.2% C 0.242 H 275.4°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#4030DB
RGBrgb(64, 48, 219)
HSLhsl(246, 70%, 52%)
HSVhsv(246, 78%, 86%)
CMYKcmyk(70.8%, 78.1%, 0%, 14.1%)
CIE-LABlab(34.63, 57.56, -83.46)
CIE-LCHlch(34.63, 101.38, 304.59°)
OKLaboklab(46.18% 0.0227 -0.2413)
OKLCHoklch(46.18% 0.242 275.4)
XYZxyz(15.9533, 8.3168, 67.7687)
Luminance0.0832 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4030DB #CBDB30
analogous
#3076DB #4030DB #9530DB
triadic
#4030DB #DB4030 #30DB40
tetradic
#4030DB #DB3076 #CBDB30 #30DB95
square
#4030DB #DB3076 #CBDB30 #30DB95
split-complementary
#4030DB #DB9530 #76DB30
monochromatic
#1F157B #2C1EAF #4030DB #7064E4 #A098ED

Accessibility & contrast

On white

7.88
#4030DB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#4030DB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4030DB
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4030DB#FFFFFF#000000##FFFFFF
##4030DB1.007.882.667.88
#FFFFFF7.881.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059E0
Deuteranopia (green-blind)
#004AD8
Tritanopia (blue-blind)
#006485
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #4030db;
/* rgb */ color: rgb(64, 48, 219);
/* oklch */ color: oklch(46.2% 0.242 275.4);
Tailwind
colors: {
  custom: {
    50: '#8c6de8',
    500: '#4030db',
    950: '#000000',
  },
}
SCSS
$custom: #4030db;
$custom-light: #8c6de8;
$custom-dark: #000000;
JSON
{
  "hex": "#4030db",
  "rgb": {
    "r": 64,
    "g": 48,
    "b": 219
  },
  "hsl": {
    "h": 245.614,
    "s": 70.37,
    "l": 52.353
  },
  "oklch": {
    "l": 0.46183,
    "c": 0.24239,
    "h": 275.4
  },
  "luminance": 0.08318
}

Semantic roles & 50–950 ramp

primary
#4030DB
secondary
#D2D98E
accent
#ED3BDC
background
#F9F6FE
surface
#F2ECFD
border
#CCC7D5
text
#0E0716
muted
#7E7A84

Preview Lab

Preview with #4030DB

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

Preview Lab → · Contrast checker → · Palette generator →

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