#2A54AF#2A54AF

#2A54AF is a mid, vivid blue. Relative luminance 0.099; OKLCH L 46.9% C 0.153 H 263.1°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#2A54AF
RGBrgb(42, 84, 175)
HSLhsl(221, 61%, 43%)
HSVhsv(221, 76%, 69%)
CMYKcmyk(76%, 52%, 0%, 31.4%)
CIE-LABlab(37.71, 18.34, -52.80)
CIE-LCHlch(37.71, 55.90, 289.16°)
OKLaboklab(46.94% -0.0183 -0.1519)
OKLCHoklch(46.94% 0.153 263.1)
XYZxyz(11.8603, 9.9267, 41.8401)
Luminance0.0993 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A54AF #AF852A
analogous
#2A96AF #2A54AF #432AAF
triadic
#2A54AF #AF2A54 #54AF2A
tetradic
#2A54AF #AF2A96 #AF852A #2AAF43
square
#2A54AF #AF2A96 #AF852A #2AAF43
split-complementary
#2A54AF #AF432A #96AF2A
monochromatic
#12254C #1E3C7E #2A54AF #4471D2 #7596DE

Accessibility & contrast

On white

7.03
#2A54AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A54AF
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A54AF#FFFFFF#000000##FFFFFF
##2A54AF1.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#185FB2
Deuteranopia (green-blind)
#0053AD
Tritanopia (blue-blind)
#006A79
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2a54af;
/* rgb */ color: rgb(42, 84, 175);
/* oklch */ color: oklch(46.9% 0.153 263.1);
Tailwind
colors: {
  custom: {
    50: '#7783c7',
    500: '#2a54af',
    950: '#000000',
  },
}
SCSS
$custom: #2a54af;
$custom-light: #7783c7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a54af",
  "rgb": {
    "r": 42,
    "g": 84,
    "b": 175
  },
  "hsl": {
    "h": 221.053,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.46938,
    "c": 0.15304,
    "h": 263.1
  },
  "luminance": 0.09928
}

Semantic roles & 50–950 ramp

primary
#2A54AF
secondary
#C6AA6F
accent
#B243E4
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2A54AF

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

Preview Lab → · Contrast checker → · Palette generator →

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