#2F519B#2F519B

#2F519B is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.0% C 0.127 H 263.6°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#2F519B
RGBrgb(47, 81, 155)
HSLhsl(221, 53%, 40%)
HSVhsv(221, 70%, 61%)
CMYKcmyk(69.7%, 47.7%, 0%, 39.2%)
CIE-LABlab(35.70, 13.41, -44.08)
CIE-LCHlch(35.70, 46.08, 286.92°)
OKLaboklab(45.03% -0.0142 -0.1263)
OKLCHoklch(45.03% 0.127 263.6)
XYZxyz(10.0290, 8.8547, 32.1846)
Luminance0.0886 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F519B #9B792F
analogous
#2F879B #2F519B #432F9B
triadic
#2F519B #9B2F51 #519B2F
tetradic
#2F519B #9B2F87 #9B792F #2F9B43
square
#2F519B #9B2F87 #9B792F #2F9B43
split-complementary
#2F519B #9B432F #879B2F
monochromatic
#13203D #21386C #2F519B #426BC6 #7190D4

Accessibility & contrast

On white

7.58
#2F519B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#2F519B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F519B
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F519B#FFFFFF#000000##FFFFFF
##2F519B1.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B599E
Deuteranopia (green-blind)
#134F99
Tritanopia (blue-blind)
#00626E
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2f519b;
/* rgb */ color: rgb(47, 81, 155);
/* oklch */ color: oklch(45.0% 0.127 263.6);
Tailwind
colors: {
  custom: {
    50: '#7581b9',
    500: '#2f519b',
    950: '#000000',
  },
}
SCSS
$custom: #2f519b;
$custom-light: #7581b9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f519b",
  "rgb": {
    "r": 47,
    "g": 81,
    "b": 155
  },
  "hsl": {
    "h": 221.111,
    "s": 53.465,
    "l": 39.608
  },
  "oklch": {
    "l": 0.45028,
    "c": 0.12707,
    "h": 263.6
  },
  "luminance": 0.08856
}

Semantic roles & 50–950 ramp

primary
#2F519B
secondary
#BBA26A
accent
#AF4BDD
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2F519B

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

Preview Lab → · Contrast checker → · Palette generator →

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