#4030AF#4030AF

#4030AF is a dark, vivid blue. Relative luminance 0.063; OKLCH L 41.7% C 0.191 H 279.9°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#4030AF
RGBrgb(64, 48, 175)
HSLhsl(248, 57%, 44%)
HSVhsv(248, 73%, 69%)
CMYKcmyk(63.4%, 72.6%, 0%, 31.4%)
CIE-LABlab(30.15, 44.04, -65.07)
CIE-LCHlch(30.15, 78.57, 304.09°)
OKLaboklab(41.69% 0.0327 -0.1877)
OKLCHoklch(41.69% 0.191 279.9)
XYZxyz(10.9067, 6.2982, 41.1901)
Luminance0.0630 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4030AF #9FAF30
analogous
#305FAF #4030AF #7F30AF
triadic
#4030AF #AF4030 #30AF40
tetradic
#4030AF #AF305F #9FAF30 #30AF7F
square
#4030AF #AF305F #9FAF30 #30AF7F
split-complementary
#4030AF #AF7F30 #5FAF30
monochromatic
#1D164F #2E237F #4030AF #5E4ECE #8A7EDC

Accessibility & contrast

On white

9.29
#4030AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#4030AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4030AF
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4030AF#FFFFFF#000000##FFFFFF
##4030AF1.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB3
Deuteranopia (green-blind)
#0042AD
Tritanopia (blue-blind)
#00536C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4030af;
/* rgb */ color: rgb(64, 48, 175);
/* oklch */ color: oklch(41.7% 0.191 279.9);
Tailwind
colors: {
  custom: {
    50: '#836ac8',
    500: '#4030af',
    950: '#000000',
  },
}
SCSS
$custom: #4030af;
$custom-light: #836ac8;
$custom-dark: #000000;
JSON
{
  "hex": "#4030af",
  "rgb": {
    "r": 64,
    "g": 48,
    "b": 175
  },
  "hsl": {
    "h": 247.559,
    "s": 56.951,
    "l": 43.725
  },
  "oklch": {
    "l": 0.41694,
    "c": 0.19057,
    "h": 279.9
  },
  "luminance": 0.06299
}

Semantic roles & 50–950 ramp

primary
#4030AF
secondary
#BBC476
accent
#E048CD
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4030AF

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

Preview Lab → · Contrast checker → · Palette generator →

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