#2A55AC#2A55AC

#2A55AC is a mid, vivid blue. Relative luminance 0.100; OKLCH L 46.9% C 0.148 H 262.4°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#2A55AC
RGBrgb(42, 85, 172)
HSLhsl(220, 61%, 42%)
HSVhsv(220, 76%, 67%)
CMYKcmyk(75.6%, 50.6%, 0%, 32.5%)
CIE-LABlab(37.78, 16.53, -50.91)
CIE-LCHlch(37.78, 53.52, 287.99°)
OKLaboklab(46.93% -0.0194 -0.1464)
OKLCHoklch(46.93% 0.148 262.4)
XYZxyz(11.6471, 9.9665, 40.3316)
Luminance0.0997 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A55AC #AC812A
analogous
#2A96AC #2A55AC #402AAC
triadic
#2A55AC #AC2A55 #55AC2A
tetradic
#2A55AC #AC2A96 #AC812A #2AAC40
square
#2A55AC #AC2A96 #AC812A #2AAC40
split-complementary
#2A55AC #AC402A #96AC2A
monochromatic
#12244A #1E3D7B #2A55AC #4271D1 #7396DD

Accessibility & contrast

On white

7.01
#2A55AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#2A55AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A55AC
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A55AC#FFFFFF#000000##FFFFFF
##2A55AC1.007.012.997.01
#FFFFFF7.011.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#205FAF
Deuteranopia (green-blind)
#0053AA
Tritanopia (blue-blind)
#006A78
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2a55ac;
/* rgb */ color: rgb(42, 85, 172);
/* oklch */ color: oklch(46.9% 0.148 262.4);
Tailwind
colors: {
  custom: {
    50: '#7684c5',
    500: '#2a55ac',
    950: '#000000',
  },
}
SCSS
$custom: #2a55ac;
$custom-light: #7684c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a55ac",
  "rgb": {
    "r": 42,
    "g": 85,
    "b": 172
  },
  "hsl": {
    "h": 220.154,
    "s": 60.748,
    "l": 41.961
  },
  "oklch": {
    "l": 0.46926,
    "c": 0.14765,
    "h": 262.4
  },
  "luminance": 0.09968
}

Semantic roles & 50–950 ramp

primary
#2A55AC
secondary
#C4A86D
accent
#AF44E4
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2A55AC

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

Preview Lab → · Contrast checker → · Palette generator →

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