#2A55B5#2A55B5

#2A55B5 is a mid, vivid blue. Relative luminance 0.103; OKLCH L 47.6% C 0.160 H 263.4°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#2A55B5
RGBrgb(42, 85, 181)
HSLhsl(221, 62%, 44%)
HSVhsv(221, 77%, 71%)
CMYKcmyk(76.8%, 53%, 0%, 29%)
CIE-LABlab(38.42, 19.99, -55.19)
CIE-LCHlch(38.42, 58.70, 289.91°)
OKLaboklab(47.61% -0.0184 -0.159)
OKLCHoklch(47.61% 0.16 263.4)
XYZxyz(12.5409, 10.3240, 45.0389)
Luminance0.1032 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A55B5 #B58A2A
analogous
#2A9AB5 #2A55B5 #442AB5
triadic
#2A55B5 #B52A55 #55B52A
tetradic
#2A55B5 #B52A9A #B58A2A #2AB544
square
#2A55B5 #B52A9A #B58A2A #2AB544
split-complementary
#2A55B5 #B5442A #9AB52A
monochromatic
#132652 #1E3E83 #2A55B5 #4873D4 #7999E0

Accessibility & contrast

On white

6.85
#2A55B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#2A55B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A55B5
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A55B5#FFFFFF#000000##FFFFFF
##2A55B51.006.853.076.85
#FFFFFF6.851.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E61B8
Deuteranopia (green-blind)
#0054B3
Tritanopia (blue-blind)
#006C7D
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2a55b5;
/* rgb */ color: rgb(42, 85, 181);
/* oklch */ color: oklch(47.6% 0.160 263.4);
Tailwind
colors: {
  custom: {
    50: '#7884cc',
    500: '#2a55b5',
    950: '#000000',
  },
}
SCSS
$custom: #2a55b5;
$custom-light: #7884cc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a55b5",
  "rgb": {
    "r": 42,
    "g": 85,
    "b": 181
  },
  "hsl": {
    "h": 221.439,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.47612,
    "c": 0.16004,
    "h": 263.4
  },
  "luminance": 0.10325
}

Semantic roles & 50–950 ramp

primary
#2A55B5
secondary
#C8AE73
accent
#B342E5
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2A55B5

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

Preview Lab → · Contrast checker → · Palette generator →

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