#2F519D#2F519D

#2F519D is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.2% C 0.130 H 263.8°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#2F519D
RGBrgb(47, 81, 157)
HSLhsl(221, 54%, 40%)
HSVhsv(221, 70%, 62%)
CMYKcmyk(70.1%, 48.4%, 0%, 38.4%)
CIE-LABlab(35.83, 14.17, -45.08)
CIE-LCHlch(35.83, 47.25, 287.45°)
OKLaboklab(45.17% -0.0139 -0.1292)
OKLCHoklch(45.17% 0.13 263.8)
XYZxyz(10.1984, 8.9225, 33.0765)
Luminance0.0892 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F519D #9D7B2F
analogous
#2F889D #2F519D #442F9D
triadic
#2F519D #9D2F51 #519D2F
tetradic
#2F519D #9D2F88 #9D7B2F #2F9D44
square
#2F519D #9D2F88 #9D7B2F #2F9D44
split-complementary
#2F519D #9D442F #889D2F
monochromatic
#13203F #21396E #2F519D #436BC7 #7290D5

Accessibility & contrast

On white

7.54
#2F519D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#2F519D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F519D
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F519D#FFFFFF#000000##FFFFFF
##2F519D1.007.542.787.54
#FFFFFF7.541.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#295AA0
Deuteranopia (green-blind)
#0E509B
Tritanopia (blue-blind)
#00636F
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2f519d;
/* rgb */ color: rgb(47, 81, 157);
/* oklch */ color: oklch(45.2% 0.130 263.8);
Tailwind
colors: {
  custom: {
    50: '#7581ba',
    500: '#2f519d',
    950: '#000000',
  },
}
SCSS
$custom: #2f519d;
$custom-light: #7581ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2f519d",
  "rgb": {
    "r": 47,
    "g": 81,
    "b": 157
  },
  "hsl": {
    "h": 221.455,
    "s": 53.922,
    "l": 40
  },
  "oklch": {
    "l": 0.45171,
    "c": 0.12994,
    "h": 263.8
  },
  "luminance": 0.08924
}

Semantic roles & 50–950 ramp

primary
#2F519D
secondary
#BCA36B
accent
#B04BDD
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2F519D

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

Preview Lab → · Contrast checker → · Palette generator →

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