#2A64C1#2A64C1

#2A64C1 is a mid, vivid blue. Relative luminance 0.135; OKLCH L 51.7% C 0.158 H 259.6°. Best body text is #FFFFFF at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#2A64C1
RGBrgb(42, 100, 193)
HSLhsl(217, 64%, 46%)
HSVhsv(217, 78%, 76%)
CMYKcmyk(78.2%, 48.2%, 0%, 24.3%)
CIE-LABlab(43.44, 14.79, -54.09)
CIE-LCHlch(43.44, 56.07, 285.30°)
OKLaboklab(51.71% -0.0285 -0.1554)
OKLCHoklch(51.71% 0.158 259.6)
XYZxyz(15.1341, 13.4551, 52.2412)
Luminance0.1346 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A64C1 #C1872A
analogous
#2AAFC1 #2A64C1 #3C2AC1
triadic
#2A64C1 #C12A64 #64C12A
tetradic
#2A64C1 #C12AAF #C1872A #2AC13C
square
#2A64C1 #C12AAF #C1872A #2AC13C
split-complementary
#2A64C1 #C13C2A #AFC12A
monochromatic
#14305C #1F4A8F #2A64C1 #4F84D9 #82A7E4

Accessibility & contrast

On white

5.69
#2A64C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#2A64C1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A64C1
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A64C1#FFFFFF#000000##FFFFFF
##2A64C11.005.693.695.69
#FFFFFF5.691.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F6EC4
Deuteranopia (green-blind)
#0060BF
Tritanopia (blue-blind)
#007A89
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #2a64c1;
/* rgb */ color: rgb(42, 100, 193);
/* oklch */ color: oklch(51.7% 0.158 259.6);
Tailwind
colors: {
  custom: {
    50: '#7a8fd4',
    500: '#2a64c1',
    950: '#000000',
  },
}
SCSS
$custom: #2a64c1;
$custom-light: #7a8fd4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a64c1",
  "rgb": {
    "r": 42,
    "g": 100,
    "b": 193
  },
  "hsl": {
    "h": 216.954,
    "s": 64.255,
    "l": 46.078
  },
  "oklch": {
    "l": 0.51712,
    "c": 0.15804,
    "h": 259.6
  },
  "luminance": 0.13457
}

Semantic roles & 50–950 ramp

primary
#2A64C1
secondary
#CDAD7A
accent
#A741E7
background
#F8F8FD
surface
#EFF0FA
border
#CACBD3
text
#0B0C14
muted
#7C7D83

Preview Lab

Preview with #2A64C1

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

Preview Lab → · Contrast checker → · Palette generator →

#2A64C1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva