#2A5DC3#2A5DC3

#2A5DC3 is a mid, vivid blue. Relative luminance 0.123; OKLCH L 50.4% C 0.169 H 262.2°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#2A5DC3
RGBrgb(42, 93, 195)
HSLhsl(220, 65%, 46%)
HSVhsv(220, 78%, 76%)
CMYKcmyk(78.5%, 52.3%, 0%, 23.5%)
CIE-LABlab(41.63, 20.10, -58.18)
CIE-LCHlch(41.63, 61.55, 289.06°)
OKLaboklab(50.37% -0.023 -0.1676)
OKLCHoklch(50.37% 0.169 262.2)
XYZxyz(14.7160, 12.2594, 53.2099)
Luminance0.1226 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5DC3 #C3902A
analogous
#2AAAC3 #2A5DC3 #442AC3
triadic
#2A5DC3 #C32A5D #5DC32A
tetradic
#2A5DC3 #C32AAA #C3902A #2AC344
square
#2A5DC3 #C32AAA #C3902A #2AC344
split-complementary
#2A5DC3 #C3442A #AAC32A
monochromatic
#142D5E #1F4591 #2A5DC3 #517ED9 #83A3E4

Accessibility & contrast

On white

6.08
#2A5DC3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#2A5DC3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5DC3
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5DC3#FFFFFF#000000##FFFFFF
##2A5DC31.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#146AC7
Deuteranopia (green-blind)
#005CC1
Tritanopia (blue-blind)
#007687
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #2a5dc3;
/* rgb */ color: rgb(42, 93, 195);
/* oklch */ color: oklch(50.4% 0.169 262.2);
Tailwind
colors: {
  custom: {
    50: '#7b8ad6',
    500: '#2a5dc3',
    950: '#000000',
  },
}
SCSS
$custom: #2a5dc3;
$custom-light: #7b8ad6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5dc3",
  "rgb": {
    "r": 42,
    "g": 93,
    "b": 195
  },
  "hsl": {
    "h": 220,
    "s": 64.557,
    "l": 46.471
  },
  "oklch": {
    "l": 0.50367,
    "c": 0.16918,
    "h": 262.2
  },
  "luminance": 0.12261
}

Semantic roles & 50–950 ramp

primary
#2A5DC3
secondary
#CDB27B
accent
#B040E8
background
#F8F8FD
surface
#EFF0FA
border
#CACBD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #2A5DC3

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

Preview Lab → · Contrast checker → · Palette generator →

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