#2D5FB2#2D5FB2

#2D5FB2 is a mid, vivid blue. Relative luminance 0.120; OKLCH L 49.7% C 0.143 H 260.0°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#2D5FB2
RGBrgb(45, 95, 178)
HSLhsl(217, 60%, 44%)
HSVhsv(217, 75%, 70%)
CMYKcmyk(74.7%, 46.6%, 0%, 30.2%)
CIE-LABlab(41.14, 12.66, -49.03)
CIE-LCHlch(41.14, 50.64, 284.48°)
OKLaboklab(49.66% -0.0248 -0.1406)
OKLCHoklch(49.66% 0.143 260)
XYZxyz(13.2074, 11.9552, 43.7224)
Luminance0.1196 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5FB2 #B2802D
analogous
#2DA1B2 #2D5FB2 #3E2DB2
triadic
#2D5FB2 #B22D5F #5FB22D
tetradic
#2D5FB2 #B22DA1 #B2802D #2DB23E
square
#2D5FB2 #B22DA1 #B2802D #2DB23E
split-complementary
#2D5FB2 #B23E2D #A1B22D
monochromatic
#142B50 #214581 #2D5FB2 #4B7DD1 #7CA1DE

Accessibility & contrast

On white

6.19
#2D5FB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#2D5FB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D5FB2
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5FB2#FFFFFF#000000##FFFFFF
##2D5FB21.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3368B5
Deuteranopia (green-blind)
#135BB0
Tritanopia (blue-blind)
#007380
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #2d5fb2;
/* rgb */ color: rgb(45, 95, 178);
/* oklch */ color: oklch(49.7% 0.143 260.0);
Tailwind
colors: {
  custom: {
    50: '#788bc9',
    500: '#2d5fb2',
    950: '#000000',
  },
}
SCSS
$custom: #2d5fb2;
$custom-light: #788bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5fb2",
  "rgb": {
    "r": 45,
    "g": 95,
    "b": 178
  },
  "hsl": {
    "h": 217.444,
    "s": 59.641,
    "l": 43.725
  },
  "oklch": {
    "l": 0.49663,
    "c": 0.14278,
    "h": 260
  },
  "luminance": 0.11957
}

Semantic roles & 50–950 ramp

primary
#2D5FB2
secondary
#C6A875
accent
#A745E3
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #2D5FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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