#2A5FC3#2A5FC3

#2A5FC3 is a mid, vivid blue. Relative luminance 0.126; OKLCH L 50.8% C 0.167 H 261.6°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#2A5FC3
RGBrgb(42, 95, 195)
HSLhsl(219, 65%, 46%)
HSVhsv(219, 78%, 76%)
CMYKcmyk(78.5%, 51.3%, 0%, 23.5%)
CIE-LABlab(42.18, 18.80, -57.29)
CIE-LCHlch(42.18, 60.29, 288.17°)
OKLaboklab(50.79% -0.0244 -0.165)
OKLCHoklch(50.79% 0.167 261.6)
XYZxyz(14.8938, 12.6150, 53.2692)
Luminance0.1262 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5FC3 #C38E2A
analogous
#2AACC3 #2A5FC3 #422AC3
triadic
#2A5FC3 #C32A5F #5FC32A
tetradic
#2A5FC3 #C32AAC #C38E2A #2AC342
square
#2A5FC3 #C32AAC #C38E2A #2AC342
split-complementary
#2A5FC3 #C3422A #ACC32A
monochromatic
#142E5E #1F4691 #2A5FC3 #5180D9 #83A5E4

Accessibility & contrast

On white

5.96
#2A5FC3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#2A5FC3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5FC3
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5FC3#FFFFFF#000000##FFFFFF
##2A5FC31.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D6BC7
Deuteranopia (green-blind)
#005DC1
Tritanopia (blue-blind)
#007788
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2a5fc3;
/* rgb */ color: rgb(42, 95, 195);
/* oklch */ color: oklch(50.8% 0.167 261.6);
Tailwind
colors: {
  custom: {
    50: '#7b8bd6',
    500: '#2a5fc3',
    950: '#000000',
  },
}
SCSS
$custom: #2a5fc3;
$custom-light: #7b8bd6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5fc3",
  "rgb": {
    "r": 42,
    "g": 95,
    "b": 195
  },
  "hsl": {
    "h": 219.216,
    "s": 64.557,
    "l": 46.471
  },
  "oklch": {
    "l": 0.50788,
    "c": 0.16675,
    "h": 261.6
  },
  "luminance": 0.12617
}

Semantic roles & 50–950 ramp

primary
#2A5FC3
secondary
#CDB17B
accent
#AE40E8
background
#F8F8FD
surface
#EFF0FA
border
#CACBD3
text
#0B0C14
muted
#7C7D83

Preview Lab

Preview with #2A5FC3

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

Preview Lab → · Contrast checker → · Palette generator →

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