#4030B2#4030B2

#4030B2 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 42.0% C 0.194 H 279.5°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#4030B2
RGBrgb(64, 48, 178)
HSLhsl(247, 58%, 44%)
HSVhsv(247, 73%, 70%)
CMYKcmyk(64%, 73%, 0%, 30.2%)
CIE-LABlab(30.44, 44.98, -66.39)
CIE-LCHlch(30.44, 80.19, 304.12°)
OKLaboklab(41.99% 0.0321 -0.1916)
OKLCHoklch(41.99% 0.194 279.5)
XYZxyz(11.2046, 6.4174, 42.7591)
Luminance0.0642 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4030B2 #A2B230
analogous
#3061B2 #4030B2 #8130B2
triadic
#4030B2 #B24030 #30B240
tetradic
#4030B2 #B23061 #A2B230 #30B281
square
#4030B2 #B23061 #A2B230 #30B281
split-complementary
#4030B2 #B28130 #61B230
monochromatic
#1D1652 #2F2382 #4030B2 #5F50D0 #8B80DD

Accessibility & contrast

On white

9.20
#4030B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#4030B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4030B2
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4030B2#FFFFFF#000000##FFFFFF
##4030B21.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB6
Deuteranopia (green-blind)
#0043B0
Tritanopia (blue-blind)
#00546E
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4030b2;
/* rgb */ color: rgb(64, 48, 178);
/* oklch */ color: oklch(42.0% 0.194 279.5);
Tailwind
colors: {
  custom: {
    50: '#836bca',
    500: '#4030b2',
    950: '#000000',
  },
}
SCSS
$custom: #4030b2;
$custom-light: #836bca;
$custom-dark: #000000;
JSON
{
  "hex": "#4030b2",
  "rgb": {
    "r": 64,
    "g": 48,
    "b": 178
  },
  "hsl": {
    "h": 247.385,
    "s": 57.522,
    "l": 44.314
  },
  "oklch": {
    "l": 0.41987,
    "c": 0.19426,
    "h": 279.5
  },
  "luminance": 0.06418
}

Semantic roles & 50–950 ramp

primary
#4030B2
secondary
#BCC678
accent
#E147CE
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4030B2

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

Preview Lab → · Contrast checker → · Palette generator →

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