#2A5AC1#2A5AC1

#2A5AC1 is a mid, vivid blue. Relative luminance 0.117; OKLCH L 49.6% C 0.170 H 262.9°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#2A5AC1
RGBrgb(42, 90, 193)
HSLhsl(221, 64%, 46%)
HSVhsv(221, 78%, 76%)
CMYKcmyk(78.2%, 53.4%, 0%, 24.3%)
CIE-LABlab(40.66, 21.29, -58.58)
CIE-LCHlch(40.66, 62.33, 289.98°)
OKLaboklab(49.59% -0.021 -0.1689)
OKLCHoklch(49.59% 0.17 262.9)
XYZxyz(14.2332, 11.6532, 51.9409)
Luminance0.1166 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5AC1 #C1912A
analogous
#2AA5C1 #2A5AC1 #452AC1
triadic
#2A5AC1 #C12A5A #5AC12A
tetradic
#2A5AC1 #C12AA5 #C1912A #2AC145
square
#2A5AC1 #C12AA5 #C1912A #2AC145
split-complementary
#2A5AC1 #C1452A #A5C12A
monochromatic
#142B5C #1F438F #2A5AC1 #4F7BD9 #82A1E4

Accessibility & contrast

On white

6.30
#2A5AC1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#2A5AC1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5AC1
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5AC1#FFFFFF#000000##FFFFFF
##2A5AC11.006.303.336.30
#FFFFFF6.301.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0667C5
Deuteranopia (green-blind)
#0059BF
Tritanopia (blue-blind)
#007385
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #2a5ac1;
/* rgb */ color: rgb(42, 90, 193);
/* oklch */ color: oklch(49.6% 0.170 262.9);
Tailwind
colors: {
  custom: {
    50: '#7b88d4',
    500: '#2a5ac1',
    950: '#000000',
  },
}
SCSS
$custom: #2a5ac1;
$custom-light: #7b88d4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5ac1",
  "rgb": {
    "r": 42,
    "g": 90,
    "b": 193
  },
  "hsl": {
    "h": 220.927,
    "s": 64.255,
    "l": 46.078
  },
  "oklch": {
    "l": 0.49588,
    "c": 0.17016,
    "h": 262.9
  },
  "luminance": 0.11655
}

Semantic roles & 50–950 ramp

primary
#2A5AC1
secondary
#CDB27A
accent
#B241E7
background
#F8F8FD
surface
#EFEFFA
border
#CACAD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #2A5AC1

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

Preview Lab → · Contrast checker → · Palette generator →

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