#2F519C#2F519C

#2F519C is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.1% C 0.129 H 263.7°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#2F519C
RGBrgb(47, 81, 156)
HSLhsl(221, 54%, 40%)
HSVhsv(221, 70%, 61%)
CMYKcmyk(69.9%, 48.1%, 0%, 38.8%)
CIE-LABlab(35.77, 13.79, -44.58)
CIE-LCHlch(35.77, 46.66, 287.19°)
OKLaboklab(45.1% -0.0141 -0.1277)
OKLCHoklch(45.1% 0.129 263.7)
XYZxyz(10.1134, 8.8885, 32.6287)
Luminance0.0889 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F519C #9C7A2F
analogous
#2F889C #2F519C #432F9C
triadic
#2F519C #9C2F51 #519C2F
tetradic
#2F519C #9C2F88 #9C7A2F #2F9C43
square
#2F519C #9C2F88 #9C7A2F #2F9C43
split-complementary
#2F519C #9C432F #889C2F
monochromatic
#13203E #21396D #2F519C #426BC6 #7190D4

Accessibility & contrast

On white

7.56
#2F519C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F519C
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F519C#FFFFFF#000000##FFFFFF
##2F519C1.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A599F
Deuteranopia (green-blind)
#114F9A
Tritanopia (blue-blind)
#00626F
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2f519c;
/* rgb */ color: rgb(47, 81, 156);
/* oklch */ color: oklch(45.1% 0.129 263.7);
Tailwind
colors: {
  custom: {
    50: '#7581ba',
    500: '#2f519c',
    950: '#000000',
  },
}
SCSS
$custom: #2f519c;
$custom-light: #7581ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2f519c",
  "rgb": {
    "r": 47,
    "g": 81,
    "b": 156
  },
  "hsl": {
    "h": 221.284,
    "s": 53.695,
    "l": 39.804
  },
  "oklch": {
    "l": 0.45099,
    "c": 0.1285,
    "h": 263.7
  },
  "luminance": 0.08889
}

Semantic roles & 50–950 ramp

primary
#2F519C
secondary
#BCA36B
accent
#AF4BDD
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2F519C

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

Preview Lab → · Contrast checker → · Palette generator →

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