#2F519E#2F519E

#2F519E is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.2% C 0.131 H 264.0°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#2F519E
RGBrgb(47, 81, 158)
HSLhsl(222, 54%, 40%)
HSVhsv(222, 70%, 62%)
CMYKcmyk(70.3%, 48.7%, 0%, 38%)
CIE-LABlab(35.90, 14.55, -45.57)
CIE-LCHlch(35.90, 47.84, 287.70°)
OKLaboklab(45.24% -0.0138 -0.1306)
OKLCHoklch(45.24% 0.131 264)
XYZxyz(10.2841, 8.9568, 33.5280)
Luminance0.0896 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F519E #9E7C2F
analogous
#2F889E #2F519E #452F9E
triadic
#2F519E #9E2F51 #519E2F
tetradic
#2F519E #9E2F88 #9E7C2F #2F9E45
square
#2F519E #9E2F88 #9E7C2F #2F9E45
split-complementary
#2F519E #9E452F #889E2F
monochromatic
#132140 #21396F #2F519E #436CC7 #7291D5

Accessibility & contrast

On white

7.52
#2F519E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#2F519E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F519E
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F519E#FFFFFF#000000##FFFFFF
##2F519E1.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#285AA1
Deuteranopia (green-blind)
#0B509C
Tritanopia (blue-blind)
#006370
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2f519e;
/* rgb */ color: rgb(47, 81, 158);
/* oklch */ color: oklch(45.2% 0.131 264.0);
Tailwind
colors: {
  custom: {
    50: '#7581bb',
    500: '#2f519e',
    950: '#000000',
  },
}
SCSS
$custom: #2f519e;
$custom-light: #7581bb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f519e",
  "rgb": {
    "r": 47,
    "g": 81,
    "b": 158
  },
  "hsl": {
    "h": 221.622,
    "s": 54.146,
    "l": 40.196
  },
  "oklch": {
    "l": 0.45243,
    "c": 0.13137,
    "h": 264
  },
  "luminance": 0.08958
}

Semantic roles & 50–950 ramp

primary
#2F519E
secondary
#BDA46C
accent
#B04ADE
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2F519E

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

Preview Lab → · Contrast checker → · Palette generator →

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