#2A5FC1#2A5FC1

#2A5FC1 is a mid, vivid blue. Relative luminance 0.125; OKLCH L 50.6% C 0.164 H 261.4°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#2A5FC1
RGBrgb(42, 95, 193)
HSLhsl(219, 64%, 46%)
HSVhsv(219, 78%, 76%)
CMYKcmyk(78.2%, 50.8%, 0%, 24.3%)
CIE-LABlab(42.04, 18.03, -56.35)
CIE-LCHlch(42.04, 59.16, 287.75°)
OKLaboklab(50.64% -0.0247 -0.1622)
OKLCHoklch(50.64% 0.164 261.4)
XYZxyz(14.6692, 12.5252, 52.0862)
Luminance0.1253 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5FC1 #C18C2A
analogous
#2AAAC1 #2A5FC1 #402AC1
triadic
#2A5FC1 #C12A5F #5FC12A
tetradic
#2A5FC1 #C12AAA #C18C2A #2AC140
square
#2A5FC1 #C12AAA #C18C2A #2AC140
split-complementary
#2A5FC1 #C1402A #AAC12A
monochromatic
#142E5C #1F468F #2A5FC1 #4F80D9 #82A4E4

Accessibility & contrast

On white

5.99
#2A5FC1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#2A5FC1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5FC1
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5FC1#FFFFFF#000000##FFFFFF
##2A5FC11.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#206AC5
Deuteranopia (green-blind)
#005DBF
Tritanopia (blue-blind)
#007787
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #2a5fc1;
/* rgb */ color: rgb(42, 95, 193);
/* oklch */ color: oklch(50.6% 0.164 261.4);
Tailwind
colors: {
  custom: {
    50: '#7a8bd4',
    500: '#2a5fc1',
    950: '#000000',
  },
}
SCSS
$custom: #2a5fc1;
$custom-light: #7a8bd4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5fc1",
  "rgb": {
    "r": 42,
    "g": 95,
    "b": 193
  },
  "hsl": {
    "h": 218.94,
    "s": 64.255,
    "l": 46.078
  },
  "oklch": {
    "l": 0.50638,
    "c": 0.16406,
    "h": 261.4
  },
  "luminance": 0.12527
}

Semantic roles & 50–950 ramp

primary
#2A5FC1
secondary
#CDB07A
accent
#AD41E7
background
#F8F8FD
surface
#EFF0FA
border
#CACBD3
text
#0B0C14
muted
#7C7D83

Preview Lab

Preview with #2A5FC1

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

Preview Lab → · Contrast checker → · Palette generator →

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