#2F5DA4#2F5DA4

#2F5DA4 is a mid, vivid blue. Relative luminance 0.111; OKLCH L 48.3% C 0.125 H 258.9°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#2F5DA4
RGBrgb(47, 93, 164)
HSLhsl(216, 55%, 41%)
HSVhsv(216, 71%, 64%)
CMYKcmyk(71.3%, 43.3%, 0%, 35.7%)
CIE-LABlab(39.77, 8.94, -42.96)
CIE-LCHlch(39.77, 43.88, 281.76°)
OKLaboklab(48.34% -0.0241 -0.1227)
OKLCHoklch(48.34% 0.125 258.9)
XYZxyz(11.7851, 11.1121, 36.6385)
Luminance0.1111 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5DA4 #A4762F
analogous
#2F98A4 #2F5DA4 #3C2FA4
triadic
#2F5DA4 #A42F5D #5DA42F
tetradic
#2F5DA4 #A42F98 #A4762F #2FA43C
square
#2F5DA4 #A42F98 #A4762F #2FA43C
split-complementary
#2F5DA4 #A43C2F #98A42F
monochromatic
#142745 #214274 #2F5DA4 #467ACA #769CD8

Accessibility & contrast

On white

6.52
#2F5DA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#2F5DA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5DA4
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5DA4#FFFFFF#000000##FFFFFF
##2F5DA41.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B64A7
Deuteranopia (green-blind)
#2759A3
Tritanopia (blue-blind)
#006E78
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #2f5da4;
/* rgb */ color: rgb(47, 93, 164);
/* oklch */ color: oklch(48.3% 0.125 258.9);
Tailwind
colors: {
  custom: {
    50: '#768abf',
    500: '#2f5da4',
    950: '#000000',
  },
}
SCSS
$custom: #2f5da4;
$custom-light: #768abf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5da4",
  "rgb": {
    "r": 47,
    "g": 93,
    "b": 164
  },
  "hsl": {
    "h": 216.41,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.48341,
    "c": 0.1251,
    "h": 258.9
  },
  "luminance": 0.11113
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F5DA4

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

Preview Lab → · Contrast checker → · Palette generator →

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