#2A54B6#2A54B6

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

Color values

HEX#2A54B6
RGBrgb(42, 84, 182)
HSLhsl(222, 63%, 44%)
HSVhsv(222, 77%, 71%)
CMYKcmyk(76.9%, 53.8%, 0%, 28.6%)
CIE-LABlab(38.21, 21.03, -56.11)
CIE-LCHlch(38.21, 59.92, 290.55°)
OKLaboklab(47.48% -0.0175 -0.1617)
OKLCHoklch(47.48% 0.163 263.8)
XYZxyz(12.5657, 10.2089, 45.5552)
Luminance0.1021 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A54B6 #B68C2A
analogous
#2A9AB6 #2A54B6 #462AB6
triadic
#2A54B6 #B62A54 #54B62A
tetradic
#2A54B6 #B62A9A #B68C2A #2AB646
square
#2A54B6 #B62A9A #B68C2A #2AB646
split-complementary
#2A54B6 #B6462A #9AB62A
monochromatic
#132653 #1F3D84 #2A54B6 #4873D5 #7A99E0

Accessibility & contrast

On white

6.90
#2A54B6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#2A54B6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A54B6
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A54B6#FFFFFF#000000##FFFFFF
##2A54B61.006.903.046.90
#FFFFFF6.901.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0361B9
Deuteranopia (green-blind)
#0054B4
Tritanopia (blue-blind)
#006C7D
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2a54b6;
/* rgb */ color: rgb(42, 84, 182);
/* oklch */ color: oklch(47.5% 0.163 263.8);
Tailwind
colors: {
  custom: {
    50: '#7883cd',
    500: '#2a54b6',
    950: '#000000',
  },
}
SCSS
$custom: #2a54b6;
$custom-light: #7883cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2a54b6",
  "rgb": {
    "r": 42,
    "g": 84,
    "b": 182
  },
  "hsl": {
    "h": 222,
    "s": 62.5,
    "l": 43.922
  },
  "oklch": {
    "l": 0.47481,
    "c": 0.16265,
    "h": 263.8
  },
  "luminance": 0.1021
}

Semantic roles & 50–950 ramp

primary
#2A54B6
secondary
#C8AF73
accent
#B542E6
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2A54B6

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

Preview Lab → · Contrast checker → · Palette generator →

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