#2F5DA5#2F5DA5

#2F5DA5 is a mid, vivid blue. Relative luminance 0.112; OKLCH L 48.4% C 0.127 H 259.1°. Best body text is #FFFFFF at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#2F5DA5
RGBrgb(47, 93, 165)
HSLhsl(217, 56%, 42%)
HSVhsv(217, 72%, 65%)
CMYKcmyk(71.5%, 43.6%, 0%, 35.3%)
CIE-LABlab(39.83, 9.32, -43.45)
CIE-LCHlch(39.83, 44.44, 282.11°)
OKLaboklab(48.41% -0.0239 -0.1242)
OKLCHoklch(48.41% 0.127 259.1)
XYZxyz(11.8757, 11.1484, 37.1160)
Luminance0.1115 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5DA5 #A5772F
analogous
#2F98A5 #2F5DA5 #3C2FA5
triadic
#2F5DA5 #A52F5D #5DA52F
tetradic
#2F5DA5 #A52F98 #A5772F #2FA53C
square
#2F5DA5 #A52F98 #A5772F #2FA53C
split-complementary
#2F5DA5 #A53C2F #98A52F
monochromatic
#142746 #214275 #2F5DA5 #477ACB #769CD8

Accessibility & contrast

On white

6.50
#2F5DA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#2F5DA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5DA5
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5DA5#FFFFFF#000000##FFFFFF
##2F5DA51.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A64A8
Deuteranopia (green-blind)
#2559A4
Tritanopia (blue-blind)
#006E79
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #2f5da5;
/* rgb */ color: rgb(47, 93, 165);
/* oklch */ color: oklch(48.4% 0.127 259.1);
Tailwind
colors: {
  custom: {
    50: '#768ac0',
    500: '#2f5da5',
    950: '#000000',
  },
}
SCSS
$custom: #2f5da5;
$custom-light: #768ac0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5da5",
  "rgb": {
    "r": 47,
    "g": 93,
    "b": 165
  },
  "hsl": {
    "h": 216.61,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.48407,
    "c": 0.1265,
    "h": 259.1
  },
  "luminance": 0.1115
}

Semantic roles & 50–950 ramp

primary
#2F5DA5
secondary
#C0A170
accent
#A449DF
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #2F5DA5

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

Preview Lab → · Contrast checker → · Palette generator →

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