#2F518F#2F518F

#2F518F is a dark, moderate blue. Relative luminance 0.085; OKLCH L 44.2% C 0.110 H 261.4°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#2F518F
RGBrgb(47, 81, 143)
HSLhsl(219, 51%, 37%)
HSVhsv(219, 67%, 56%)
CMYKcmyk(67.1%, 43.4%, 0%, 43.9%)
CIE-LABlab(34.95, 8.90, -38.03)
CIE-LCHlch(34.95, 39.05, 283.17°)
OKLaboklab(44.2% -0.0164 -0.1085)
OKLCHoklch(44.2% 0.11 261.4)
XYZxyz(9.0709, 8.4715, 27.1384)
Luminance0.0847 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F518F #8F6D2F
analogous
#2F818F #2F518F #3D2F8F
triadic
#2F518F #8F2F51 #518F2F
tetradic
#2F518F #8F2F81 #8F6D2F #2F8F3D
square
#2F518F #8F2F81 #8F6D2F #2F8F3D
split-complementary
#2F518F #8F3D2F #818F2F
monochromatic
#111D33 #203761 #2F518F #3E6BBD #6A8ECE

Accessibility & contrast

On white

7.79
#2F518F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#2F518F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F518F
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F518F#FFFFFF#000000##FFFFFF
##2F518F1.007.792.697.79
#FFFFFF7.791.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#345791
Deuteranopia (green-blind)
#254E8E
Tritanopia (blue-blind)
#005F69
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2f518f;
/* rgb */ color: rgb(47, 81, 143);
/* oklch */ color: oklch(44.2% 0.110 261.4);
Tailwind
colors: {
  custom: {
    50: '#7281b0',
    500: '#2f518f',
    950: '#000000',
  },
}
SCSS
$custom: #2f518f;
$custom-light: #7281b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f518f",
  "rgb": {
    "r": 47,
    "g": 81,
    "b": 143
  },
  "hsl": {
    "h": 218.75,
    "s": 50.526,
    "l": 37.255
  },
  "oklch": {
    "l": 0.44201,
    "c": 0.10971,
    "h": 261.4
  },
  "luminance": 0.08472
}

Semantic roles & 50–950 ramp

primary
#2F518F
secondary
#B59965
accent
#A84EDA
background
#F7F7FA
surface
#EDEEF5
border
#C8C9CF
text
#090A10
muted
#7B7C7F

Preview Lab

Preview with #2F518F

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

Preview Lab → · Contrast checker → · Palette generator →

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