#4030B8#4030B8

#4030B8 is a dark, highly saturated blue. Relative luminance 0.067; OKLCH L 42.6% C 0.202 H 278.8°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#4030B8
RGBrgb(64, 48, 184)
HSLhsl(247, 59%, 45%)
HSVhsv(247, 74%, 72%)
CMYKcmyk(65.2%, 73.9%, 0%, 27.8%)
CIE-LABlab(31.03, 46.87, -68.99)
CIE-LCHlch(31.03, 83.40, 304.19°)
OKLaboklab(42.58% 0.0308 -0.1992)
OKLCHoklch(42.58% 0.202 278.8)
XYZxyz(11.8203, 6.6636, 46.0014)
Luminance0.0667 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4030B8 #A8B830
analogous
#3064B8 #4030B8 #8430B8
triadic
#4030B8 #B84030 #30B840
tetradic
#4030B8 #B83064 #A8B830 #30B884
square
#4030B8 #B83064 #A8B830 #30B884
split-complementary
#4030B8 #B88430 #64B830
monochromatic
#1E1757 #2F2387 #4030B8 #6253D2 #8E84DF

Accessibility & contrast

On white

9.00
#4030B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#4030B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4030B8
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4030B8#FFFFFF#000000##FFFFFF
##4030B81.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBC
Deuteranopia (green-blind)
#0043B6
Tritanopia (blue-blind)
#005771
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4030b8;
/* rgb */ color: rgb(64, 48, 184);
/* oklch */ color: oklch(42.6% 0.202 278.8);
Tailwind
colors: {
  custom: {
    50: '#846bcf',
    500: '#4030b8',
    950: '#000000',
  },
}
SCSS
$custom: #4030b8;
$custom-light: #846bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#4030b8",
  "rgb": {
    "r": 64,
    "g": 48,
    "b": 184
  },
  "hsl": {
    "h": 247.059,
    "s": 58.621,
    "l": 45.49
  },
  "oklch": {
    "l": 0.4258,
    "c": 0.20155,
    "h": 278.8
  },
  "luminance": 0.06665
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4030B8

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

Preview Lab → · Contrast checker → · Palette generator →

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