#2A5ABC#2A5ABC

#2A5ABC is a mid, vivid blue. Relative luminance 0.114; OKLCH L 49.2% C 0.163 H 262.4°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#2A5ABC
RGBrgb(42, 90, 188)
HSLhsl(220, 63%, 45%)
HSVhsv(220, 78%, 74%)
CMYKcmyk(77.7%, 52.1%, 0%, 26.3%)
CIE-LABlab(40.30, 19.38, -56.25)
CIE-LCHlch(40.30, 59.49, 289.01°)
OKLaboklab(49.2% -0.0215 -0.162)
OKLCHoklch(49.2% 0.163 262.4)
XYZxyz(13.6849, 11.4338, 49.0529)
Luminance0.1143 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5ABC #BC8C2A
analogous
#2AA3BC #2A5ABC #432ABC
triadic
#2A5ABC #BC2A5A #5ABC2A
tetradic
#2A5ABC #BC2AA3 #BC8C2A #2ABC43
square
#2A5ABC #BC2AA3 #BC8C2A #2ABC43
split-complementary
#2A5ABC #BC432A #A3BC2A
monochromatic
#142A58 #1F428A #2A5ABC #4C7AD7 #7E9FE2

Accessibility & contrast

On white

6.39
#2A5ABC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#2A5ABC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5ABC
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5ABC#FFFFFF#000000##FFFFFF
##2A5ABC1.006.393.296.39
#FFFFFF6.391.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1666BF
Deuteranopia (green-blind)
#0059BA
Tritanopia (blue-blind)
#007282
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2a5abc;
/* rgb */ color: rgb(42, 90, 188);
/* oklch */ color: oklch(49.2% 0.163 262.4);
Tailwind
colors: {
  custom: {
    50: '#7a88d1',
    500: '#2a5abc',
    950: '#000000',
  },
}
SCSS
$custom: #2a5abc;
$custom-light: #7a88d1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5abc",
  "rgb": {
    "r": 42,
    "g": 90,
    "b": 188
  },
  "hsl": {
    "h": 220.274,
    "s": 63.478,
    "l": 45.098
  },
  "oklch": {
    "l": 0.49203,
    "c": 0.16341,
    "h": 262.4
  },
  "luminance": 0.11435
}

Semantic roles & 50–950 ramp

primary
#2A5ABC
secondary
#CBAF77
accent
#B041E7
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #2A5ABC

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

Preview Lab → · Contrast checker → · Palette generator →

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