#4068CC#4068CC

#4068CC is a mid, vivid blue. Relative luminance 0.153; OKLCH L 54.2% C 0.162 H 265.1°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#4068CC
RGBrgb(64, 104, 204)
HSLhsl(223, 58%, 53%)
HSVhsv(223, 69%, 80%)
CMYKcmyk(68.6%, 49%, 0%, 20%)
CIE-LABlab(46.11, 19.21, -56.09)
CIE-LCHlch(46.11, 59.29, 288.91°)
OKLaboklab(54.22% -0.0139 -0.1609)
OKLCHoklch(54.22% 0.162 265.1)
XYZxyz(17.9599, 15.3485, 59.1311)
Luminance0.1535 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4068CC #CCA440
analogous
#40AECC #4068CC #5E40CC
triadic
#4068CC #CC4068 #68CC40
tetradic
#4068CC #CC40AE #CCA440 #40CC5E
square
#4068CC #CC40AE #CCA440 #40CC5E
split-complementary
#4068CC #CC5E40 #AECC40
monochromatic
#1F3773 #2C4EA3 #4068CC #708ED9 #A1B4E6

Accessibility & contrast

On white

5.16
#4068CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#4068CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4068CC
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4068CC#FFFFFF#000000##FFFFFF
##4068CC1.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3074D0
Deuteranopia (green-blind)
#0167CA
Tritanopia (blue-blind)
#007F90
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #4068cc;
/* rgb */ color: rgb(64, 104, 204);
/* oklch */ color: oklch(54.2% 0.162 265.1);
Tailwind
colors: {
  custom: {
    50: '#8592dc',
    500: '#4068cc',
    950: '#000000',
  },
}
SCSS
$custom: #4068cc;
$custom-light: #8592dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4068cc",
  "rgb": {
    "r": 64,
    "g": 104,
    "b": 204
  },
  "hsl": {
    "h": 222.857,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.54216,
    "c": 0.1615,
    "h": 265.1
  },
  "luminance": 0.1535
}

Semantic roles & 50–950 ramp

primary
#4068CC
secondary
#D2C195
accent
#B547E1
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0C0D15
muted
#7D7D83

Preview Lab

Preview with #4068CC

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

Preview Lab → · Contrast checker → · Palette generator →

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