#2D57A6#2D57A6

#2D57A6 is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.0% C 0.136 H 261.6°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#2D57A6
RGBrgb(45, 87, 166)
HSLhsl(219, 57%, 41%)
HSVhsv(219, 73%, 65%)
CMYKcmyk(72.9%, 47.6%, 0%, 34.9%)
CIE-LABlab(38.07, 13.32, -46.88)
CIE-LCHlch(38.07, 48.73, 285.86°)
OKLaboklab(47.05% -0.0197 -0.1344)
OKLCHoklch(47.05% 0.136 261.6)
XYZxyz(11.3709, 10.1262, 37.4243)
Luminance0.1013 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D57A6 #A67C2D
analogous
#2D94A6 #2D57A6 #402DA6
triadic
#2D57A6 #A62D57 #57A62D
tetradic
#2D57A6 #A62D94 #A67C2D #2DA640
square
#2D57A6 #A62D94 #A67C2D #2DA640
split-complementary
#2D57A6 #A6402D #94A62D
monochromatic
#132546 #203E76 #2D57A6 #4473CC #7497D9

Accessibility & contrast

On white

6.94
#2D57A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#2D57A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D57A6
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D57A6#FFFFFF#000000##FFFFFF
##2D57A61.006.943.036.94
#FFFFFF6.941.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D60A9
Deuteranopia (green-blind)
#0F54A4
Tritanopia (blue-blind)
#006A76
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2d57a6;
/* rgb */ color: rgb(45, 87, 166);
/* oklch */ color: oklch(47.0% 0.136 261.6);
Tailwind
colors: {
  custom: {
    50: '#7685c1',
    500: '#2d57a6',
    950: '#000000',
  },
}
SCSS
$custom: #2d57a6;
$custom-light: #7685c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2d57a6",
  "rgb": {
    "r": 45,
    "g": 87,
    "b": 166
  },
  "hsl": {
    "h": 219.174,
    "s": 57.346,
    "l": 41.373
  },
  "oklch": {
    "l": 0.47048,
    "c": 0.13586,
    "h": 261.6
  },
  "luminance": 0.10127
}

Semantic roles & 50–950 ramp

primary
#2D57A6
secondary
#C1A46E
accent
#AB47E1
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #2D57A6

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

Preview Lab → · Contrast checker → · Palette generator →

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