#2D54AB#2D54AB

#2D54AB is a mid, vivid blue. Relative luminance 0.098; OKLCH L 46.8% C 0.147 H 263.6°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#2D54AB
RGBrgb(45, 84, 171)
HSLhsl(221, 58%, 42%)
HSVhsv(221, 74%, 67%)
CMYKcmyk(73.7%, 50.9%, 0%, 32.9%)
CIE-LABlab(37.55, 17.20, -50.68)
CIE-LCHlch(37.55, 53.52, 288.75°)
OKLaboklab(46.76% -0.0164 -0.1457)
OKLCHoklch(46.76% 0.147 263.6)
XYZxyz(11.6006, 9.8376, 39.8076)
Luminance0.0984 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D54AB #AB842D
analogous
#2D93AB #2D54AB #452DAB
triadic
#2D54AB #AB2D54 #54AB2D
tetradic
#2D54AB #AB2D93 #AB842D #2DAB45
square
#2D54AB #AB2D93 #AB842D #2DAB45
split-complementary
#2D54AB #AB452D #93AB2D
monochromatic
#14244A #203C7B #2D54AB #4771CE #7796DB

Accessibility & contrast

On white

7.08
#2D54AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#2D54AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D54AB
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D54AB#FFFFFF#000000##FFFFFF
##2D54AB1.007.082.977.08
#FFFFFF7.081.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F5EAE
Deuteranopia (green-blind)
#0053A9
Tritanopia (blue-blind)
#006977
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2d54ab;
/* rgb */ color: rgb(45, 84, 171);
/* oklch */ color: oklch(46.8% 0.147 263.6);
Tailwind
colors: {
  custom: {
    50: '#7783c5',
    500: '#2d54ab',
    950: '#000000',
  },
}
SCSS
$custom: #2d54ab;
$custom-light: #7783c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d54ab",
  "rgb": {
    "r": 45,
    "g": 84,
    "b": 171
  },
  "hsl": {
    "h": 221.429,
    "s": 58.333,
    "l": 42.353
  },
  "oklch": {
    "l": 0.46759,
    "c": 0.14659,
    "h": 263.6
  },
  "luminance": 0.09839
}

Semantic roles & 50–950 ramp

primary
#2D54AB
secondary
#C3AA71
accent
#B146E2
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2D54AB

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

Preview Lab → · Contrast checker → · Palette generator →

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