#4030B5#4030B5

#4030B5 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 42.3% C 0.198 H 279.1°. Best body text is #FFFFFF at 9.10:1 contrast (WCAG AA passes).

Color values

HEX#4030B5
RGBrgb(64, 48, 181)
HSLhsl(247, 58%, 45%)
HSVhsv(247, 73%, 71%)
CMYKcmyk(64.6%, 73.5%, 0%, 29%)
CIE-LABlab(30.73, 45.92, -67.69)
CIE-LCHlch(30.73, 81.80, 304.15°)
OKLaboklab(42.28% 0.0315 -0.1954)
OKLCHoklch(42.28% 0.198 279.1)
XYZxyz(11.5091, 6.5392, 44.3628)
Luminance0.0654 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4030B5 #A5B530
analogous
#3063B5 #4030B5 #8330B5
triadic
#4030B5 #B54030 #30B540
tetradic
#4030B5 #B53063 #A5B530 #30B583
square
#4030B5 #B53063 #A5B530 #30B583
split-complementary
#4030B5 #B58330 #63B530
monochromatic
#1E1654 #2F2385 #4030B5 #6151D1 #8D82DE

Accessibility & contrast

On white

9.10
#4030B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#4030B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4030B5
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4030B5#FFFFFF#000000##FFFFFF
##4030B51.009.102.319.10
#FFFFFF9.101.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB9
Deuteranopia (green-blind)
#0043B3
Tritanopia (blue-blind)
#005570
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4030b5;
/* rgb */ color: rgb(64, 48, 181);
/* oklch */ color: oklch(42.3% 0.198 279.1);
Tailwind
colors: {
  custom: {
    50: '#846bcc',
    500: '#4030b5',
    950: '#000000',
  },
}
SCSS
$custom: #4030b5;
$custom-light: #846bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#4030b5",
  "rgb": {
    "r": 64,
    "g": 48,
    "b": 181
  },
  "hsl": {
    "h": 247.218,
    "s": 58.079,
    "l": 44.902
  },
  "oklch": {
    "l": 0.42282,
    "c": 0.19792,
    "h": 279.1
  },
  "luminance": 0.0654
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4030B5

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

Preview Lab → · Contrast checker → · Palette generator →

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