#2A55B3#2A55B3

#2A55B3 is a mid, vivid blue. Relative luminance 0.102; OKLCH L 47.5% C 0.157 H 263.2°. Best body text is #FFFFFF at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#2A55B3
RGBrgb(42, 85, 179)
HSLhsl(221, 62%, 43%)
HSVhsv(221, 77%, 70%)
CMYKcmyk(76.5%, 52.5%, 0%, 29.8%)
CIE-LABlab(38.27, 19.22, -54.25)
CIE-LCHlch(38.27, 57.55, 289.51°)
OKLaboklab(47.46% -0.0186 -0.1562)
OKLCHoklch(47.46% 0.157 263.2)
XYZxyz(12.3371, 10.2425, 43.9659)
Luminance0.1024 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A55B3 #B3882A
analogous
#2A99B3 #2A55B3 #432AB3
triadic
#2A55B3 #B32A55 #55B32A
tetradic
#2A55B3 #B32A99 #B3882A #2AB343
square
#2A55B3 #B32A99 #B3882A #2AB343
split-complementary
#2A55B3 #B3432A #99B32A
monochromatic
#132650 #1E3D81 #2A55B3 #4673D4 #7898DF

Accessibility & contrast

On white

6.89
#2A55B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#2A55B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A55B3
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A55B3#FFFFFF#000000##FFFFFF
##2A55B31.006.893.056.89
#FFFFFF6.891.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1461B6
Deuteranopia (green-blind)
#0054B1
Tritanopia (blue-blind)
#006C7C
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2a55b3;
/* rgb */ color: rgb(42, 85, 179);
/* oklch */ color: oklch(47.5% 0.157 263.2);
Tailwind
colors: {
  custom: {
    50: '#7884ca',
    500: '#2a55b3',
    950: '#000000',
  },
}
SCSS
$custom: #2a55b3;
$custom-light: #7884ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2a55b3",
  "rgb": {
    "r": 42,
    "g": 85,
    "b": 179
  },
  "hsl": {
    "h": 221.168,
    "s": 61.991,
    "l": 43.333
  },
  "oklch": {
    "l": 0.47457,
    "c": 0.15731,
    "h": 263.2
  },
  "luminance": 0.10244
}

Semantic roles & 50–950 ramp

primary
#2A55B3
secondary
#C7AC72
accent
#B243E5
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2A55B3

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

Preview Lab → · Contrast checker → · Palette generator →

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