#4037AF#4037AF

#4037AF is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.7% C 0.183 H 278.7°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#4037AF
RGBrgb(64, 55, 175)
HSLhsl(245, 52%, 45%)
HSVhsv(245, 69%, 69%)
CMYKcmyk(63.4%, 68.6%, 0%, 31.4%)
CIE-LABlab(31.62, 40.00, -62.67)
CIE-LCHlch(31.62, 74.35, 302.55°)
OKLaboklab(42.74% 0.0275 -0.1807)
OKLCHoklch(42.74% 0.183 278.7)
XYZxyz(11.2159, 6.9166, 41.2931)
Luminance0.0692 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4037AF #A6AF37
analogous
#376AAF #4037AF #7C37AF
triadic
#4037AF #AF4037 #37AF40
tetradic
#4037AF #AF376A #A6AF37 #37AF7C
square
#4037AF #AF376A #A6AF37 #37AF7C
split-complementary
#4037AF #AF7C37 #6AAF37
monochromatic
#1E1A52 #2F2880 #4037AF #6159CB #8D87D9

Accessibility & contrast

On white

8.81
#4037AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#4037AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4037AF
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4037AF#FFFFFF#000000##FFFFFF
##4037AF1.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB3
Deuteranopia (green-blind)
#0046AD
Tritanopia (blue-blind)
#00576E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4037af;
/* rgb */ color: rgb(64, 55, 175);
/* oklch */ color: oklch(42.7% 0.183 278.7);
Tailwind
colors: {
  custom: {
    50: '#826fc8',
    500: '#4037af',
    950: '#000000',
  },
}
SCSS
$custom: #4037af;
$custom-light: #826fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#4037af",
  "rgb": {
    "r": 64,
    "g": 55,
    "b": 175
  },
  "hsl": {
    "h": 244.5,
    "s": 52.174,
    "l": 45.098
  },
  "oklch": {
    "l": 0.42742,
    "c": 0.18282,
    "h": 278.7
  },
  "luminance": 0.06918
}

Semantic roles & 50–950 ramp

primary
#4037AF
secondary
#BEC37F
accent
#DC4CD1
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4037AF

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

Preview Lab → · Contrast checker → · Palette generator →

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