#2A54B3#2A54B3

#2A54B3 is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.2% C 0.159 H 263.5°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#2A54B3
RGBrgb(42, 84, 179)
HSLhsl(222, 62%, 43%)
HSVhsv(222, 77%, 70%)
CMYKcmyk(76.5%, 53.1%, 0%, 29.8%)
CIE-LABlab(38.00, 19.88, -54.70)
CIE-LCHlch(38.00, 58.20, 289.97°)
OKLaboklab(47.25% -0.0178 -0.1575)
OKLCHoklch(47.25% 0.159 263.5)
XYZxyz(12.2590, 10.0862, 43.9398)
Luminance0.1009 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A54B3 #B3892A
analogous
#2A98B3 #2A54B3 #442AB3
triadic
#2A54B3 #B32A54 #54B32A
tetradic
#2A54B3 #B32A98 #B3892A #2AB344
square
#2A54B3 #B32A98 #B3892A #2AB344
split-complementary
#2A54B3 #B3442A #98B32A
monochromatic
#132550 #1E3D81 #2A54B3 #4672D4 #7898DF

Accessibility & contrast

On white

6.96
#2A54B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#2A54B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A54B3
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A54B3#FFFFFF#000000##FFFFFF
##2A54B31.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E60B6
Deuteranopia (green-blind)
#0053B1
Tritanopia (blue-blind)
#006B7B
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2a54b3;
/* rgb */ color: rgb(42, 84, 179);
/* oklch */ color: oklch(47.2% 0.159 263.5);
Tailwind
colors: {
  custom: {
    50: '#7883ca',
    500: '#2a54b3',
    950: '#000000',
  },
}
SCSS
$custom: #2a54b3;
$custom-light: #7883ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2a54b3",
  "rgb": {
    "r": 42,
    "g": 84,
    "b": 179
  },
  "hsl": {
    "h": 221.606,
    "s": 61.991,
    "l": 43.333
  },
  "oklch": {
    "l": 0.47247,
    "c": 0.15855,
    "h": 263.5
  },
  "luminance": 0.10088
}

Semantic roles & 50–950 ramp

primary
#2A54B3
secondary
#C7AD72
accent
#B343E5
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2A54B3

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

Preview Lab → · Contrast checker → · Palette generator →

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