#4045A3#4045A3

#4045A3 is a dark, vivid blue. Relative luminance 0.080; OKLCH L 44.2% C 0.149 H 276.1°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#4045A3
RGBrgb(64, 69, 163)
HSLhsl(237, 44%, 45%)
HSVhsv(237, 61%, 64%)
CMYKcmyk(60.7%, 57.7%, 0%, 36.1%)
CIE-LABlab(33.96, 27.21, -51.66)
CIE-LCHlch(33.96, 58.39, 297.77°)
OKLaboklab(44.15% 0.0159 -0.1483)
OKLCHoklch(44.15% 0.149 276.1)
XYZxyz(10.8512, 7.9897, 35.6136)
Luminance0.0799 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4045A3 #A39E40
analogous
#4076A3 #4045A3 #6D40A3
triadic
#4045A3 #A34045 #45A340
tetradic
#4045A3 #A34076 #A39E40 #40A36D
square
#4045A3 #A34076 #A39E40 #40A36D
split-complementary
#4045A3 #A36D40 #76A340
monochromatic
#1D204B #2F3277 #4045A3 #6065C0 #8C8FD2

Accessibility & contrast

On white

8.08
#4045A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#4045A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4045A3
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4045A3#FFFFFF#000000##FFFFFF
##4045A31.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A6
Deuteranopia (green-blind)
#004CA1
Tritanopia (blue-blind)
#005B6D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #4045a3;
/* rgb */ color: rgb(64, 69, 163);
/* oklch */ color: oklch(44.2% 0.149 276.1);
Tailwind
colors: {
  custom: {
    50: '#7f78bf',
    500: '#4045a3',
    950: '#000000',
  },
}
SCSS
$custom: #4045a3;
$custom-light: #7f78bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4045a3",
  "rgb": {
    "r": 64,
    "g": 69,
    "b": 163
  },
  "hsl": {
    "h": 236.97,
    "s": 43.612,
    "l": 44.51
  },
  "oklch": {
    "l": 0.44152,
    "c": 0.14917,
    "h": 276.1
  },
  "luminance": 0.07991
}

Semantic roles & 50–950 ramp

primary
#4045A3
secondary
#BDBA82
accent
#CD54D3
background
#F8F7FB
surface
#EFEDF7
border
#CAC8D0
text
#0B0912
muted
#7C7B81

Preview Lab

Preview with #4045A3

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

Preview Lab → · Contrast checker → · Palette generator →

#4045A3 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva