#2A5AC3#2A5AC3

#2A5AC3 is a mid, vivid blue. Relative luminance 0.117; OKLCH L 49.7% C 0.173 H 263.1°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#2A5AC3
RGBrgb(42, 90, 195)
HSLhsl(221, 65%, 46%)
HSVhsv(221, 78%, 76%)
CMYKcmyk(78.5%, 53.8%, 0%, 23.5%)
CIE-LABlab(40.80, 22.06, -59.51)
CIE-LCHlch(40.80, 63.47, 290.34°)
OKLaboklab(49.74% -0.0208 -0.1716)
OKLCHoklch(49.74% 0.173 263.1)
XYZxyz(14.4578, 11.7430, 53.1238)
Luminance0.1174 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5AC3 #C3932A
analogous
#2AA7C3 #2A5AC3 #462AC3
triadic
#2A5AC3 #C32A5A #5AC32A
tetradic
#2A5AC3 #C32AA7 #C3932A #2AC346
square
#2A5AC3 #C32AA7 #C3932A #2AC346
split-complementary
#2A5AC3 #C3462A #A7C32A
monochromatic
#142C5E #1F4391 #2A5AC3 #517CD9 #83A2E4

Accessibility & contrast

On white

6.27
#2A5AC3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#2A5AC3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5AC3
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5AC3#FFFFFF#000000##FFFFFF
##2A5AC31.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068C7
Deuteranopia (green-blind)
#005AC1
Tritanopia (blue-blind)
#007486
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #2a5ac3;
/* rgb */ color: rgb(42, 90, 195);
/* oklch */ color: oklch(49.7% 0.173 263.1);
Tailwind
colors: {
  custom: {
    50: '#7b88d6',
    500: '#2a5ac3',
    950: '#000000',
  },
}
SCSS
$custom: #2a5ac3;
$custom-light: #7b88d6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5ac3",
  "rgb": {
    "r": 42,
    "g": 90,
    "b": 195
  },
  "hsl": {
    "h": 221.176,
    "s": 64.557,
    "l": 46.471
  },
  "oklch": {
    "l": 0.49744,
    "c": 0.17283,
    "h": 263.1
  },
  "luminance": 0.11745
}

Semantic roles & 50–950 ramp

primary
#2A5AC3
secondary
#CDB47B
accent
#B340E8
background
#F8F8FD
surface
#EFEFFA
border
#CACAD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #2A5AC3

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

Preview Lab → · Contrast checker → · Palette generator →

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