#4068CB#4068CB

#4068CB is a mid, vivid blue. Relative luminance 0.153; OKLCH L 54.1% C 0.160 H 265.0°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#4068CB
RGBrgb(64, 104, 203)
HSLhsl(223, 57%, 52%)
HSVhsv(223, 68%, 80%)
CMYKcmyk(68.5%, 48.8%, 0%, 20.4%)
CIE-LABlab(46.04, 18.85, -55.62)
CIE-LCHlch(46.04, 58.73, 288.72°)
OKLaboklab(54.15% -0.014 -0.1595)
OKLCHoklch(54.15% 0.16 265)
XYZxyz(17.8404, 15.3006, 58.5014)
Luminance0.1530 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4068CB #CBA340
analogous
#40ADCB #4068CB #5E40CB
triadic
#4068CB #CB4068 #68CB40
tetradic
#4068CB #CB40AD #CBA340 #40CB5E
square
#4068CB #CB40AD #CBA340 #40CB5E
split-complementary
#4068CB #CB5E40 #ADCB40
monochromatic
#1F3772 #2C4EA2 #4068CB #708ED8 #A0B4E5

Accessibility & contrast

On white

5.17
#4068CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#4068CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4068CB
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4068CB#FFFFFF#000000##FFFFFF
##4068CB1.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3174CF
Deuteranopia (green-blind)
#0667C9
Tritanopia (blue-blind)
#007F90
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #4068cb;
/* rgb */ color: rgb(64, 104, 203);
/* oklch */ color: oklch(54.1% 0.160 265.0);
Tailwind
colors: {
  custom: {
    50: '#8492db',
    500: '#4068cb',
    950: '#000000',
  },
}
SCSS
$custom: #4068cb;
$custom-light: #8492db;
$custom-dark: #000000;
JSON
{
  "hex": "#4068cb",
  "rgb": {
    "r": 64,
    "g": 104,
    "b": 203
  },
  "hsl": {
    "h": 222.734,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.54146,
    "c": 0.16014,
    "h": 265
  },
  "luminance": 0.15302
}

Semantic roles & 50–950 ramp

primary
#4068CB
secondary
#D2C095
accent
#B447E0
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0C0D15
muted
#7D7D83

Preview Lab

Preview with #4068CB

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

Preview Lab → · Contrast checker → · Palette generator →

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