#4046CC#4046CC

#4046CC is a mid, highly saturated blue. Relative luminance 0.098; OKLCH L 47.8% C 0.203 H 273.8°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#4046CC
RGBrgb(64, 70, 204)
HSLhsl(237, 58%, 53%)
HSVhsv(237, 69%, 80%)
CMYKcmyk(68.6%, 65.7%, 0%, 20%)
CIE-LABlab(37.53, 40.65, -70.02)
CIE-LCHlch(37.53, 80.97, 300.14°)
OKLaboklab(47.82% 0.0133 -0.2022)
OKLCHoklch(47.82% 0.203 273.8)
XYZxyz(15.2000, 9.8285, 58.2111)
Luminance0.0983 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4046CC #CCC640
analogous
#408CCC #4046CC #8040CC
triadic
#4046CC #CC4046 #46CC40
tetradic
#4046CC #CC408C #CCC640 #40CC80
square
#4046CC #CC408C #CCC640 #40CC80
split-complementary
#4046CC #CC8040 #8CCC40
monochromatic
#1F2273 #2C31A3 #4046CC #7075D9 #A1A4E6

Accessibility & contrast

On white

7.08
#4046CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#4046CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4046CC
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4046CC#FFFFFF#000000##FFFFFF
##4046CC1.007.082.977.08
#FFFFFF7.081.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD0
Deuteranopia (green-blind)
#0052C9
Tritanopia (blue-blind)
#006983
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #4046cc;
/* rgb */ color: rgb(64, 70, 204);
/* oklch */ color: oklch(47.8% 0.203 273.8);
Tailwind
colors: {
  custom: {
    50: '#877add',
    500: '#4046cc',
    950: '#000000',
  },
}
SCSS
$custom: #4046cc;
$custom-light: #877add;
$custom-dark: #000000;
JSON
{
  "hex": "#4046cc",
  "rgb": {
    "r": 64,
    "g": 70,
    "b": 204
  },
  "hsl": {
    "h": 237.429,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.47815,
    "c": 0.20266,
    "h": 273.8
  },
  "luminance": 0.0983
}

Semantic roles & 50–950 ramp

primary
#4046CC
secondary
#D2D095
accent
#DA47E1
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0915
muted
#7E7B83

Preview Lab

Preview with #4046CC

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

Preview Lab → · Contrast checker → · Palette generator →

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