#2A5EC3#2A5EC3

#2A5EC3 is a mid, vivid blue. Relative luminance 0.124; OKLCH L 50.6% C 0.168 H 261.9°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#2A5EC3
RGBrgb(42, 94, 195)
HSLhsl(220, 65%, 46%)
HSVhsv(220, 78%, 76%)
CMYKcmyk(78.5%, 51.8%, 0%, 23.5%)
CIE-LABlab(41.90, 19.45, -57.73)
CIE-LCHlch(41.90, 60.92, 288.62°)
OKLaboklab(50.58% -0.0237 -0.1663)
OKLCHoklch(50.58% 0.168 261.9)
XYZxyz(14.8043, 12.4360, 53.2393)
Luminance0.1244 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5EC3 #C38F2A
analogous
#2AABC3 #2A5EC3 #432AC3
triadic
#2A5EC3 #C32A5E #5EC32A
tetradic
#2A5EC3 #C32AAB #C38F2A #2AC343
square
#2A5EC3 #C32AAB #C38F2A #2AC343
split-complementary
#2A5EC3 #C3432A #ABC32A
monochromatic
#142D5E #1F4691 #2A5EC3 #517FD9 #83A4E4

Accessibility & contrast

On white

6.02
#2A5EC3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#2A5EC3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5EC3
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5EC3#FFFFFF#000000##FFFFFF
##2A5EC31.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#196AC7
Deuteranopia (green-blind)
#005CC1
Tritanopia (blue-blind)
#007787
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #2a5ec3;
/* rgb */ color: rgb(42, 94, 195);
/* oklch */ color: oklch(50.6% 0.168 261.9);
Tailwind
colors: {
  custom: {
    50: '#7b8bd6',
    500: '#2a5ec3',
    950: '#000000',
  },
}
SCSS
$custom: #2a5ec3;
$custom-light: #7b8bd6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5ec3",
  "rgb": {
    "r": 42,
    "g": 94,
    "b": 195
  },
  "hsl": {
    "h": 219.608,
    "s": 64.557,
    "l": 46.471
  },
  "oklch": {
    "l": 0.50577,
    "c": 0.16796,
    "h": 261.9
  },
  "luminance": 0.12438
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A5EC3

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

Preview Lab → · Contrast checker → · Palette generator →

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