#2F519F#2F519F

#2F519F is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.3% C 0.133 H 264.1°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#2F519F
RGBrgb(47, 81, 159)
HSLhsl(222, 54%, 40%)
HSVhsv(222, 70%, 62%)
CMYKcmyk(70.4%, 49.1%, 0%, 37.6%)
CIE-LABlab(35.97, 14.92, -46.06)
CIE-LCHlch(35.97, 48.42, 287.95°)
OKLaboklab(45.32% -0.0136 -0.1321)
OKLCHoklch(45.32% 0.133 264.1)
XYZxyz(10.3705, 8.9913, 33.9831)
Luminance0.0899 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F519F #9F7D2F
analogous
#2F899F #2F519F #452F9F
triadic
#2F519F #9F2F51 #519F2F
tetradic
#2F519F #9F2F89 #9F7D2F #2F9F45
square
#2F519F #9F2F89 #9F7D2F #2F9F45
split-complementary
#2F519F #9F452F #899F2F
monochromatic
#132141 #213970 #2F519F #446CC8 #7391D6

Accessibility & contrast

On white

7.50
#2F519F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#2F519F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F519F
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F519F#FFFFFF#000000##FFFFFF
##2F519F1.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275AA2
Deuteranopia (green-blind)
#07509D
Tritanopia (blue-blind)
#006370
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2f519f;
/* rgb */ color: rgb(47, 81, 159);
/* oklch */ color: oklch(45.3% 0.133 264.1);
Tailwind
colors: {
  custom: {
    50: '#7581bc',
    500: '#2f519f',
    950: '#000000',
  },
}
SCSS
$custom: #2f519f;
$custom-light: #7581bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f519f",
  "rgb": {
    "r": 47,
    "g": 81,
    "b": 159
  },
  "hsl": {
    "h": 221.786,
    "s": 54.369,
    "l": 40.392
  },
  "oklch": {
    "l": 0.45315,
    "c": 0.1328,
    "h": 264.1
  },
  "luminance": 0.08992
}

Semantic roles & 50–950 ramp

primary
#2F519F
secondary
#BDA56D
accent
#B14ADE
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2F519F

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

Preview Lab → · Contrast checker → · Palette generator →

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