#2A55B7#2A55B7

#2A55B7 is a mid, vivid blue. Relative luminance 0.104; OKLCH L 47.8% C 0.163 H 263.6°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#2A55B7
RGBrgb(42, 85, 183)
HSLhsl(222, 63%, 44%)
HSVhsv(222, 77%, 72%)
CMYKcmyk(77%, 53.6%, 0%, 28.2%)
CIE-LABlab(38.56, 20.75, -56.14)
CIE-LCHlch(38.56, 59.85, 290.29°)
OKLaboklab(47.77% -0.0182 -0.1617)
OKLCHoklch(47.77% 0.163 263.6)
XYZxyz(12.7475, 10.4067, 46.1274)
Luminance0.1041 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A55B7 #B78C2A
analogous
#2A9CB7 #2A55B7 #462AB7
triadic
#2A55B7 #B72A55 #55B72A
tetradic
#2A55B7 #B72A9C #B78C2A #2AB746
square
#2A55B7 #B72A9C #B78C2A #2AB746
split-complementary
#2A55B7 #B7462A #9CB72A
monochromatic
#132753 #1F3E85 #2A55B7 #4974D5 #7B9AE1

Accessibility & contrast

On white

6.81
#2A55B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#2A55B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A55B7
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A55B7#FFFFFF#000000##FFFFFF
##2A55B71.006.813.086.81
#FFFFFF6.811.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0762BA
Deuteranopia (green-blind)
#0055B5
Tritanopia (blue-blind)
#006D7D
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2a55b7;
/* rgb */ color: rgb(42, 85, 183);
/* oklch */ color: oklch(47.8% 0.163 263.6);
Tailwind
colors: {
  custom: {
    50: '#7984cd',
    500: '#2a55b7',
    950: '#000000',
  },
}
SCSS
$custom: #2a55b7;
$custom-light: #7984cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2a55b7",
  "rgb": {
    "r": 42,
    "g": 85,
    "b": 183
  },
  "hsl": {
    "h": 221.702,
    "s": 62.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.47768,
    "c": 0.16277,
    "h": 263.6
  },
  "luminance": 0.10408
}

Semantic roles & 50–950 ramp

primary
#2A55B7
secondary
#C9AF74
accent
#B442E6
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0A0A14
muted
#7C7C82

Preview Lab

Preview with #2A55B7

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

Preview Lab → · Contrast checker → · Palette generator →

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