#4074CA#4074CA

#4074CA is a mid, vivid blue. Relative luminance 0.178; OKLCH L 56.6% C 0.144 H 259.9°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#4074CA
RGBrgb(64, 116, 202)
HSLhsl(217, 57%, 52%)
HSVhsv(217, 68%, 79%)
CMYKcmyk(68.3%, 42.6%, 0%, 20.8%)
CIE-LABlab(49.31, 10.95, -49.82)
CIE-LCHlch(49.31, 51.01, 282.40°)
OKLaboklab(56.63% -0.0253 -0.1423)
OKLCHoklch(56.63% 0.145 259.9)
XYZxyz(19.0166, 17.8431, 58.3075)
Luminance0.1784 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4074CA #CA9640
analogous
#40B9CA #4074CA #5140CA
triadic
#4074CA #CA4074 #74CA40
tetradic
#4074CA #CA40B9 #CA9640 #40CA51
square
#4074CA #CA40B9 #CA9640 #40CA51
split-complementary
#4074CA #CA5140 #B9CA40
monochromatic
#1F3E70 #2C58A0 #4074CA #7097D7 #A0BAE5

Accessibility & contrast

On white

4.60
#4074CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#4074CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #4074CA
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4074CA#FFFFFF#000000##FFFFFF
##4074CA1.004.604.574.60
#FFFFFF4.601.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B7CCD
Deuteranopia (green-blind)
#346FC8
Tritanopia (blue-blind)
#008895
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #4074ca;
/* rgb */ color: rgb(64, 116, 202);
/* oklch */ color: oklch(56.6% 0.144 259.9);
Tailwind
colors: {
  custom: {
    50: '#849bda',
    500: '#4074ca',
    950: '#000000',
  },
}
SCSS
$custom: #4074ca;
$custom-light: #849bda;
$custom-dark: #000000;
JSON
{
  "hex": "#4074ca",
  "rgb": {
    "r": 64,
    "g": 116,
    "b": 202
  },
  "hsl": {
    "h": 217.391,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.56632,
    "c": 0.1445,
    "h": 259.9
  },
  "luminance": 0.17845
}

Semantic roles & 50–950 ramp

primary
#4074CA
secondary
#D1BA95
accent
#A748E0
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0E15
muted
#7D7E83

Preview Lab

Preview with #4074CA

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

Preview Lab → · Contrast checker → · Palette generator →

#4074CA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva