#4057CA#4057CA

#4057CA is a mid, vivid blue. Relative luminance 0.122; OKLCH L 50.7% C 0.180 H 270.2°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#4057CA
RGBrgb(64, 87, 202)
HSLhsl(230, 57%, 52%)
HSVhsv(230, 68%, 79%)
CMYKcmyk(68.3%, 56.9%, 0%, 20.8%)
CIE-LABlab(41.48, 29.33, -62.42)
CIE-LCHlch(41.48, 68.97, 295.17°)
OKLaboklab(50.68% 0.0005 -0.1798)
OKLCHoklch(50.68% 0.18 270.2)
XYZxyz(16.1796, 12.1691, 57.3619)
Luminance0.1217 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4057CA #CAB340
analogous
#409CCA #4057CA #6E40CA
triadic
#4057CA #CA4057 #57CA40
tetradic
#4057CA #CA409C #CAB340 #40CA6E
square
#4057CA #CA409C #CAB340 #40CA6E
split-complementary
#4057CA #CA6E40 #9CCA40
monochromatic
#1F2D70 #2C40A0 #4057CA #7081D7 #A0ABE5

Accessibility & contrast

On white

6.11
#4057CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#4057CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4057CA
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4057CA#FFFFFF#000000##FFFFFF
##4057CA1.006.113.436.11
#FFFFFF6.111.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CE
Deuteranopia (green-blind)
#005CC8
Tritanopia (blue-blind)
#007388
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #4057ca;
/* rgb */ color: rgb(64, 87, 202);
/* oklch */ color: oklch(50.7% 0.180 270.2);
Tailwind
colors: {
  custom: {
    50: '#8586db',
    500: '#4057ca',
    950: '#000000',
  },
}
SCSS
$custom: #4057ca;
$custom-light: #8586db;
$custom-dark: #000000;
JSON
{
  "hex": "#4057ca",
  "rgb": {
    "r": 64,
    "g": 87,
    "b": 202
  },
  "hsl": {
    "h": 230,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.5068,
    "c": 0.17977,
    "h": 270.2
  },
  "luminance": 0.12171
}

Semantic roles & 50–950 ramp

primary
#4057CA
secondary
#D1C795
accent
#C748E0
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #4057CA

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

Preview Lab → · Contrast checker → · Palette generator →

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