#2D54B1#2D54B1

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

Color values

HEX#2D54B1
RGBrgb(45, 84, 177)
HSLhsl(222, 59%, 44%)
HSVhsv(222, 75%, 69%)
CMYKcmyk(74.6%, 52.5%, 0%, 30.6%)
CIE-LABlab(37.97, 19.49, -53.55)
CIE-LCHlch(37.97, 56.99, 290.00°)
OKLaboklab(47.21% -0.0157 -0.1541)
OKLCHoklch(47.21% 0.155 264.2)
XYZxyz(12.1855, 10.0715, 42.8882)
Luminance0.1007 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D54B1 #B18A2D
analogous
#2D96B1 #2D54B1 #482DB1
triadic
#2D54B1 #B12D54 #54B12D
tetradic
#2D54B1 #B12D96 #B18A2D #2DB148
square
#2D54B1 #B12D96 #B18A2D #2DB148
split-complementary
#2D54B1 #B1482D #96B12D
monochromatic
#14264F #213D80 #2D54B1 #4A72D1 #7B98DD

Accessibility & contrast

On white

6.97
#2D54B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#2D54B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D54B1
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D54B1#FFFFFF#000000##FFFFFF
##2D54B11.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1460B4
Deuteranopia (green-blind)
#0054AF
Tritanopia (blue-blind)
#006A7A
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2d54b1;
/* rgb */ color: rgb(45, 84, 177);
/* oklch */ color: oklch(47.2% 0.155 264.2);
Tailwind
colors: {
  custom: {
    50: '#7883c9',
    500: '#2d54b1',
    950: '#000000',
  },
}
SCSS
$custom: #2d54b1;
$custom-light: #7883c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2d54b1",
  "rgb": {
    "r": 45,
    "g": 84,
    "b": 177
  },
  "hsl": {
    "h": 222.273,
    "s": 59.459,
    "l": 43.529
  },
  "oklch": {
    "l": 0.47214,
    "c": 0.15492,
    "h": 264.2
  },
  "luminance": 0.10073
}

Semantic roles & 50–950 ramp

primary
#2D54B1
secondary
#C6AE74
accent
#B445E3
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2D54B1

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

Preview Lab → · Contrast checker → · Palette generator →

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