#4030B3#4030B3

#4030B3 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 42.1% C 0.195 H 279.4°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#4030B3
RGBrgb(64, 48, 179)
HSLhsl(247, 58%, 45%)
HSVhsv(247, 73%, 70%)
CMYKcmyk(64.2%, 73.2%, 0%, 29.8%)
CIE-LABlab(30.54, 45.30, -66.82)
CIE-LCHlch(30.54, 80.73, 304.13°)
OKLaboklab(42.09% 0.0319 -0.1929)
OKLCHoklch(42.09% 0.195 279.4)
XYZxyz(11.3054, 6.4577, 43.2898)
Luminance0.0646 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4030B3 #A3B330
analogous
#3062B3 #4030B3 #8130B3
triadic
#4030B3 #B34030 #30B340
tetradic
#4030B3 #B33062 #A3B330 #30B381
square
#4030B3 #B33062 #A3B330 #30B381
split-complementary
#4030B3 #B38130 #62B330
monochromatic
#1D1652 #2F2383 #4030B3 #6050D0 #8C80DD

Accessibility & contrast

On white

9.16
#4030B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#4030B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4030B3
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4030B3#FFFFFF#000000##FFFFFF
##4030B31.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB7
Deuteranopia (green-blind)
#0043B1
Tritanopia (blue-blind)
#00556F
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4030b3;
/* rgb */ color: rgb(64, 48, 179);
/* oklch */ color: oklch(42.1% 0.195 279.4);
Tailwind
colors: {
  custom: {
    50: '#836bcb',
    500: '#4030b3',
    950: '#000000',
  },
}
SCSS
$custom: #4030b3;
$custom-light: #836bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#4030b3",
  "rgb": {
    "r": 64,
    "g": 48,
    "b": 179
  },
  "hsl": {
    "h": 247.328,
    "s": 57.709,
    "l": 44.51
  },
  "oklch": {
    "l": 0.42085,
    "c": 0.19548,
    "h": 279.4
  },
  "luminance": 0.06459
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4030B3

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

Preview Lab → · Contrast checker → · Palette generator →

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