#2D54B2#2D54B2

#2D54B2 is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.3% C 0.156 H 264.3°. Best body text is #FFFFFF at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#2D54B2
RGBrgb(45, 84, 178)
HSLhsl(222, 60%, 44%)
HSVhsv(222, 75%, 70%)
CMYKcmyk(74.7%, 52.8%, 0%, 30.2%)
CIE-LABlab(38.04, 19.87, -54.03)
CIE-LCHlch(38.04, 57.57, 290.19°)
OKLaboklab(47.29% -0.0156 -0.1555)
OKLCHoklch(47.29% 0.156 264.3)
XYZxyz(12.2855, 10.1115, 43.4151)
Luminance0.1011 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D54B2 #B28B2D
analogous
#2D96B2 #2D54B2 #482DB2
triadic
#2D54B2 #B22D54 #54B22D
tetradic
#2D54B2 #B22D96 #B28B2D #2DB248
square
#2D54B2 #B22D96 #B28B2D #2DB248
split-complementary
#2D54B2 #B2482D #96B22D
monochromatic
#142650 #213D81 #2D54B2 #4B72D1 #7C98DE

Accessibility & contrast

On white

6.95
#2D54B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2D54B2
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D54B2#FFFFFF#000000##FFFFFF
##2D54B21.006.953.026.95
#FFFFFF6.951.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1260B5
Deuteranopia (green-blind)
#0054B0
Tritanopia (blue-blind)
#006B7B
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2d54b2;
/* rgb */ color: rgb(45, 84, 178);
/* oklch */ color: oklch(47.3% 0.156 264.3);
Tailwind
colors: {
  custom: {
    50: '#7983ca',
    500: '#2d54b2',
    950: '#000000',
  },
}
SCSS
$custom: #2d54b2;
$custom-light: #7983ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2d54b2",
  "rgb": {
    "r": 45,
    "g": 84,
    "b": 178
  },
  "hsl": {
    "h": 222.406,
    "s": 59.641,
    "l": 43.725
  },
  "oklch": {
    "l": 0.47291,
    "c": 0.1563,
    "h": 264.3
  },
  "luminance": 0.10113
}

Semantic roles & 50–950 ramp

primary
#2D54B2
secondary
#C6AE75
accent
#B545E3
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2D54B2

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

Preview Lab → · Contrast checker → · Palette generator →

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