#2D58A1#2D58A1

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

Color values

HEX#2D58A1
RGBrgb(45, 88, 161)
HSLhsl(218, 56%, 40%)
HSVhsv(218, 72%, 63%)
CMYKcmyk(72%, 45.3%, 0%, 36.9%)
CIE-LABlab(38.04, 10.76, -43.94)
CIE-LCHlch(38.04, 45.24, 283.76°)
OKLaboklab(46.92% -0.0215 -0.1258)
OKLCHoklch(46.92% 0.128 260.3)
XYZxyz(11.0026, 10.1094, 35.0827)
Luminance0.1011 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D58A1 #A1762D
analogous
#2D92A1 #2D58A1 #3C2DA1
triadic
#2D58A1 #A12D58 #58A12D
tetradic
#2D58A1 #A12D92 #A1762D #2DA13C
square
#2D58A1 #A12D92 #A1762D #2DA13C
split-complementary
#2D58A1 #A13C2D #92A12D
monochromatic
#122441 #203E71 #2D58A1 #4174CA #7197D7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2D58A1#FFFFFF#000000##FFFFFF
##2D58A11.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)
#335FA4
Deuteranopia (green-blind)
#1D55A0
Tritanopia (blue-blind)
#006974
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2d58a1;
/* rgb */ color: rgb(45, 88, 161);
/* oklch */ color: oklch(46.9% 0.128 260.3);
Tailwind
colors: {
  custom: {
    50: '#7586bd',
    500: '#2d58a1',
    950: '#000000',
  },
}
SCSS
$custom: #2d58a1;
$custom-light: #7586bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2d58a1",
  "rgb": {
    "r": 45,
    "g": 88,
    "b": 161
  },
  "hsl": {
    "h": 217.759,
    "s": 56.311,
    "l": 40.392
  },
  "oklch": {
    "l": 0.46922,
    "c": 0.1276,
    "h": 260.3
  },
  "luminance": 0.10111
}

Semantic roles & 50–950 ramp

primary
#2D58A1
secondary
#BFA06B
accent
#A748E0
background
#F7F8FB
surface
#EEEFF6
border
#C9CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2D58A1

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

Preview Lab → · Contrast checker → · Palette generator →

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