#2D5FAC#2D5FAC

#2D5FAC is a mid, vivid blue. Relative luminance 0.117; OKLCH L 49.2% C 0.135 H 258.9°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#2D5FAC
RGBrgb(45, 95, 172)
HSLhsl(216, 59%, 43%)
HSVhsv(216, 74%, 67%)
CMYKcmyk(73.8%, 44.8%, 0%, 32.5%)
CIE-LABlab(40.77, 10.38, -46.10)
CIE-LCHlch(40.77, 47.26, 282.69°)
OKLaboklab(49.25% -0.0259 -0.132)
OKLCHoklch(49.25% 0.135 258.9)
XYZxyz(12.6181, 11.7195, 40.6188)
Luminance0.1172 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5FAC #AC7A2D
analogous
#2D9EAC #2D5FAC #3B2DAC
triadic
#2D5FAC #AC2D5F #5FAC2D
tetradic
#2D5FAC #AC2D9E #AC7A2D #2DAC3B
square
#2D5FAC #AC2D9E #AC7A2D #2DAC3B
split-complementary
#2D5FAC #AC3B2D #9EAC2D
monochromatic
#14294B #20447B #2D5FAC #477DCF #789FDC

Accessibility & contrast

On white

6.28
#2D5FAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#2D5FAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D5FAC
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5FAC#FFFFFF#000000##FFFFFF
##2D5FAC1.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3866AF
Deuteranopia (green-blind)
#205BAA
Tritanopia (blue-blind)
#00717D
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #2d5fac;
/* rgb */ color: rgb(45, 95, 172);
/* oklch */ color: oklch(49.2% 0.135 258.9);
Tailwind
colors: {
  custom: {
    50: '#778bc5',
    500: '#2d5fac',
    950: '#000000',
  },
}
SCSS
$custom: #2d5fac;
$custom-light: #778bc5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5fac",
  "rgb": {
    "r": 45,
    "g": 95,
    "b": 172
  },
  "hsl": {
    "h": 216.378,
    "s": 58.525,
    "l": 42.549
  },
  "oklch": {
    "l": 0.49249,
    "c": 0.13451,
    "h": 258.9
  },
  "luminance": 0.11721
}

Semantic roles & 50–950 ramp

primary
#2D5FAC
secondary
#C4A371
accent
#A446E2
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #2D5FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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