#4059CF#4059CF

#4059CF is a mid, vivid blue. Relative luminance 0.127; OKLCH L 51.5% C 0.184 H 269.7°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#4059CF
RGBrgb(64, 89, 207)
HSLhsl(230, 60%, 53%)
HSVhsv(230, 69%, 81%)
CMYKcmyk(69.1%, 57%, 0%, 18.8%)
CIE-LABlab(42.37, 29.83, -63.87)
CIE-LCHlch(42.37, 70.49, 295.04°)
OKLaboklab(51.46% -0.001 -0.184)
OKLCHoklch(51.46% 0.184 269.7)
XYZxyz(16.9454, 12.7381, 60.5850)
Luminance0.1274 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4059CF #CFB640
analogous
#40A1CF #4059CF #6E40CF
triadic
#4059CF #CF4059 #59CF40
tetradic
#4059CF #CF40A1 #CFB640 #40CF6E
square
#4059CF #CF40A1 #CFB640 #40CF6E
split-complementary
#4059CF #CF6E40 #A1CF40
monochromatic
#1E2D77 #2A40A8 #4059CF #7184DB #A2AEE8

Accessibility & contrast

On white

5.92
#4059CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#4059CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4059CF
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4059CF#FFFFFF#000000##FFFFFF
##4059CF1.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD3
Deuteranopia (green-blind)
#005ECD
Tritanopia (blue-blind)
#00768B
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #4059cf;
/* rgb */ color: rgb(64, 89, 207);
/* oklch */ color: oklch(51.5% 0.184 269.7);
Tailwind
colors: {
  custom: {
    50: '#8687df',
    500: '#4059cf',
    950: '#000000',
  },
}
SCSS
$custom: #4059cf;
$custom-light: #8687df;
$custom-dark: #000000;
JSON
{
  "hex": "#4059cf",
  "rgb": {
    "r": 64,
    "g": 89,
    "b": 207
  },
  "hsl": {
    "h": 229.51,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.51456,
    "c": 0.18401,
    "h": 269.7
  },
  "luminance": 0.1274
}

Semantic roles & 50–950 ramp

primary
#4059CF
secondary
#D4C997
accent
#C745E3
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0D0B15
muted
#7D7C83

Preview Lab

Preview with #4059CF

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

Preview Lab → · Contrast checker → · Palette generator →

#4059CF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva