#4046B5#4046B5

#4046B5 is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.8% C 0.173 H 274.9°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#4046B5
RGBrgb(64, 70, 181)
HSLhsl(237, 48%, 48%)
HSVhsv(237, 65%, 71%)
CMYKcmyk(64.6%, 61.3%, 0%, 29%)
CIE-LABlab(35.61, 32.79, -59.71)
CIE-LCHlch(35.61, 68.12, 298.77°)
OKLaboklab(45.81% 0.0148 -0.172)
OKLCHoklch(45.81% 0.173 274.9)
XYZxyz(12.6423, 8.8054, 44.7405)
Luminance0.0881 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4046B5 #B5AF40
analogous
#4080B5 #4046B5 #7440B5
triadic
#4046B5 #B54046 #46B540
tetradic
#4046B5 #B54080 #B5AF40 #40B574
square
#4046B5 #B54080 #B5AF40 #40B574
split-complementary
#4046B5 #B57440 #80B540
monochromatic
#20235B #303588 #4046B5 #686DCA #9699DA

Accessibility & contrast

On white

7.60
#4046B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#4046B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4046B5
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4046B5#FFFFFF#000000##FFFFFF
##4046B51.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B9
Deuteranopia (green-blind)
#004FB3
Tritanopia (blue-blind)
#006277
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #4046b5;
/* rgb */ color: rgb(64, 70, 181);
/* oklch */ color: oklch(45.8% 0.173 274.9);
Tailwind
colors: {
  custom: {
    50: '#8279cc',
    500: '#4046b5',
    950: '#000000',
  },
}
SCSS
$custom: #4046b5;
$custom-light: #8279cc;
$custom-dark: #000000;
JSON
{
  "hex": "#4046b5",
  "rgb": {
    "r": 64,
    "g": 70,
    "b": 181
  },
  "hsl": {
    "h": 236.923,
    "s": 47.755,
    "l": 48.039
  },
  "oklch": {
    "l": 0.45808,
    "c": 0.17262,
    "h": 274.9
  },
  "luminance": 0.08807
}

Semantic roles & 50–950 ramp

primary
#4046B5
secondary
#C5C28B
accent
#D050D7
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0913
muted
#7D7B82

Preview Lab

Preview with #4046B5

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

Preview Lab → · Contrast checker → · Palette generator →

#4046B5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva