#2D57B2#2D57B2

#2D57B2 is a mid, vivid blue. Relative luminance 0.106; OKLCH L 47.9% C 0.153 H 263.2°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#2D57B2
RGBrgb(45, 87, 178)
HSLhsl(221, 60%, 44%)
HSVhsv(221, 75%, 70%)
CMYKcmyk(74.7%, 51.1%, 0%, 30.2%)
CIE-LABlab(38.88, 17.89, -52.68)
CIE-LCHlch(38.88, 55.64, 288.76°)
OKLaboklab(47.93% -0.0181 -0.1515)
OKLCHoklch(47.93% 0.153 263.2)
XYZxyz(12.5234, 10.5873, 43.4944)
Luminance0.1059 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D57B2 #B2882D
analogous
#2D99B2 #2D57B2 #462DB2
triadic
#2D57B2 #B22D57 #57B22D
tetradic
#2D57B2 #B22D99 #B2882D #2DB246
square
#2D57B2 #B22D99 #B2882D #2DB246
split-complementary
#2D57B2 #B2462D #99B22D
monochromatic
#142750 #213F81 #2D57B2 #4B75D1 #7C9BDE

Accessibility & contrast

On white

6.74
#2D57B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#2D57B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D57B2
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D57B2#FFFFFF#000000##FFFFFF
##2D57B21.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E62B5
Deuteranopia (green-blind)
#0056B0
Tritanopia (blue-blind)
#006D7C
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #2d57b2;
/* rgb */ color: rgb(45, 87, 178);
/* oklch */ color: oklch(47.9% 0.153 263.2);
Tailwind
colors: {
  custom: {
    50: '#7885ca',
    500: '#2d57b2',
    950: '#000000',
  },
}
SCSS
$custom: #2d57b2;
$custom-light: #7885ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2d57b2",
  "rgb": {
    "r": 45,
    "g": 87,
    "b": 178
  },
  "hsl": {
    "h": 221.053,
    "s": 59.641,
    "l": 43.725
  },
  "oklch": {
    "l": 0.47925,
    "c": 0.15257,
    "h": 263.2
  },
  "luminance": 0.10589
}

Semantic roles & 50–950 ramp

primary
#2D57B2
secondary
#C6AC75
accent
#B145E3
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2D57B2

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

Preview Lab → · Contrast checker → · Palette generator →

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