#2A5DC1#2A5DC1

#2A5DC1 is a mid, vivid blue. Relative luminance 0.122; OKLCH L 50.2% C 0.166 H 262.0°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#2A5DC1
RGBrgb(42, 93, 193)
HSLhsl(220, 64%, 46%)
HSVhsv(220, 78%, 76%)
CMYKcmyk(78.2%, 51.8%, 0%, 24.3%)
CIE-LABlab(41.48, 19.34, -57.25)
CIE-LCHlch(41.48, 60.42, 288.66°)
OKLaboklab(50.22% -0.0232 -0.1649)
OKLCHoklch(50.22% 0.166 262)
XYZxyz(14.4914, 12.1695, 52.0269)
Luminance0.1217 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5DC1 #C18E2A
analogous
#2AA8C1 #2A5DC1 #422AC1
triadic
#2A5DC1 #C12A5D #5DC12A
tetradic
#2A5DC1 #C12AA8 #C18E2A #2AC142
square
#2A5DC1 #C12AA8 #C18E2A #2AC142
split-complementary
#2A5DC1 #C1422A #A8C12A
monochromatic
#142D5C #1F458F #2A5DC1 #4F7ED9 #82A3E4

Accessibility & contrast

On white

6.11
#2A5DC1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#2A5DC1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5DC1
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5DC1#FFFFFF#000000##FFFFFF
##2A5DC11.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)
#1969C5
Deuteranopia (green-blind)
#005BBF
Tritanopia (blue-blind)
#007586
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #2a5dc1;
/* rgb */ color: rgb(42, 93, 193);
/* oklch */ color: oklch(50.2% 0.166 262.0);
Tailwind
colors: {
  custom: {
    50: '#7b8ad4',
    500: '#2a5dc1',
    950: '#000000',
  },
}
SCSS
$custom: #2a5dc1;
$custom-light: #7b8ad4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5dc1",
  "rgb": {
    "r": 42,
    "g": 93,
    "b": 193
  },
  "hsl": {
    "h": 219.735,
    "s": 64.255,
    "l": 46.078
  },
  "oklch": {
    "l": 0.50215,
    "c": 0.16649,
    "h": 262
  },
  "luminance": 0.12171
}

Semantic roles & 50–950 ramp

primary
#2A5DC1
secondary
#CDB17A
accent
#AF41E7
background
#F8F8FD
surface
#EFF0FA
border
#CACBD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #2A5DC1

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

Preview Lab → · Contrast checker → · Palette generator →

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