#2D5FAF#2D5FAF

#2D5FAF is a mid, vivid blue. Relative luminance 0.118; OKLCH L 49.5% C 0.139 H 259.5°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#2D5FAF
RGBrgb(45, 95, 175)
HSLhsl(217, 59%, 43%)
HSVhsv(217, 74%, 69%)
CMYKcmyk(74.3%, 45.7%, 0%, 31.4%)
CIE-LABlab(40.95, 11.52, -47.57)
CIE-LCHlch(40.95, 48.94, 283.62°)
OKLaboklab(49.46% -0.0253 -0.1363)
OKLCHoklch(49.46% 0.139 259.5)
XYZxyz(12.9095, 11.8360, 42.1533)
Luminance0.1184 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5FAF #AF7D2D
analogous
#2DA0AF #2D5FAF #3C2DAF
triadic
#2D5FAF #AF2D5F #5FAF2D
tetradic
#2D5FAF #AF2DA0 #AF7D2D #2DAF3C
square
#2D5FAF #AF2DA0 #AF7D2D #2DAF3C
split-complementary
#2D5FAF #AF3C2D #A0AF2D
monochromatic
#142A4E #20457E #2D5FAF #497DD0 #7AA0DD

Accessibility & contrast

On white

6.24
#2D5FAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#2D5FAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D5FAF
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5FAF#FFFFFF#000000##FFFFFF
##2D5FAF1.006.243.376.24
#FFFFFF6.241.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3667B2
Deuteranopia (green-blind)
#1A5BAD
Tritanopia (blue-blind)
#00727E
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #2d5faf;
/* rgb */ color: rgb(45, 95, 175);
/* oklch */ color: oklch(49.5% 0.139 259.5);
Tailwind
colors: {
  custom: {
    50: '#778bc7',
    500: '#2d5faf',
    950: '#000000',
  },
}
SCSS
$custom: #2d5faf;
$custom-light: #778bc7;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5faf",
  "rgb": {
    "r": 45,
    "g": 95,
    "b": 175
  },
  "hsl": {
    "h": 216.923,
    "s": 59.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.49455,
    "c": 0.13865,
    "h": 259.5
  },
  "luminance": 0.11837
}

Semantic roles & 50–950 ramp

primary
#2D5FAF
secondary
#C5A573
accent
#A646E2
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #2D5FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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