#4074CB#4074CB

#4074CB is a mid, vivid blue. Relative luminance 0.179; OKLCH L 56.7% C 0.146 H 260.1°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#4074CB
RGBrgb(64, 116, 203)
HSLhsl(218, 57%, 52%)
HSVhsv(218, 68%, 80%)
CMYKcmyk(68.5%, 42.9%, 0%, 20.4%)
CIE-LABlab(49.36, 11.31, -50.30)
CIE-LCHlch(49.36, 51.55, 282.67°)
OKLaboklab(56.7% -0.0251 -0.1437)
OKLCHoklch(56.7% 0.146 260.1)
XYZxyz(19.1354, 17.8906, 58.9331)
Luminance0.1789 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4074CB #CB9740
analogous
#40BACB #4074CB #5140CB
triadic
#4074CB #CB4074 #74CB40
tetradic
#4074CB #CB40BA #CB9740 #40CB51
square
#4074CB #CB40BA #CB9740 #40CB51
split-complementary
#4074CB #CB5140 #BACB40
monochromatic
#1F3E72 #2C58A2 #4074CB #7097D8 #A0BAE5

Accessibility & contrast

On white

4.59
#4074CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#4074CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #4074CB
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4074CB#FFFFFF#000000##FFFFFF
##4074CB1.004.594.584.59
#FFFFFF4.591.0021.001.00
#0000004.5821.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A7CCE
Deuteranopia (green-blind)
#336FC9
Tritanopia (blue-blind)
#008895
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #4074cb;
/* rgb */ color: rgb(64, 116, 203);
/* oklch */ color: oklch(56.7% 0.146 260.1);
Tailwind
colors: {
  custom: {
    50: '#849bdb',
    500: '#4074cb',
    950: '#000000',
  },
}
SCSS
$custom: #4074cb;
$custom-light: #849bdb;
$custom-dark: #000000;
JSON
{
  "hex": "#4074cb",
  "rgb": {
    "r": 64,
    "g": 116,
    "b": 203
  },
  "hsl": {
    "h": 217.554,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.56696,
    "c": 0.14585,
    "h": 260.1
  },
  "luminance": 0.17893
}

Semantic roles & 50–950 ramp

primary
#4074CB
secondary
#D2BB95
accent
#A747E0
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0E15
muted
#7D7E83

Preview Lab

Preview with #4074CB

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

Preview Lab → · Contrast checker → · Palette generator →

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