#2F518C#2F518C

#2F518C is a dark, moderate blue. Relative luminance 0.084; OKLCH L 44.0% C 0.105 H 260.7°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#2F518C
RGBrgb(47, 81, 140)
HSLhsl(218, 50%, 37%)
HSVhsv(218, 66%, 55%)
CMYKcmyk(66.4%, 42.1%, 0%, 45.1%)
CIE-LABlab(34.77, 7.78, -36.49)
CIE-LCHlch(34.77, 37.30, 282.03°)
OKLaboklab(44% -0.0171 -0.1039)
OKLCHoklch(44% 0.105 260.7)
XYZxyz(8.8467, 8.3818, 25.9575)
Luminance0.0838 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F518C #8C6A2F
analogous
#2F808C #2F518C #3C2F8C
triadic
#2F518C #8C2F51 #518C2F
tetradic
#2F518C #8C2F80 #8C6A2F #2F8C3C
square
#2F518C #8C2F80 #8C6A2F #2F8C3C
split-complementary
#2F518C #8C3C2F #808C2F
monochromatic
#101C30 #20365E #2F518C #3E6CBA #698DCD

Accessibility & contrast

On white

7.85
#2F518C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#2F518C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F518C
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F518C#FFFFFF#000000##FFFFFF
##2F518C1.007.852.687.85
#FFFFFF7.851.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#36568E
Deuteranopia (green-blind)
#284E8B
Tritanopia (blue-blind)
#005E67
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2f518c;
/* rgb */ color: rgb(47, 81, 140);
/* oklch */ color: oklch(44.0% 0.105 260.7);
Tailwind
colors: {
  custom: {
    50: '#7281ae',
    500: '#2f518c',
    950: '#000000',
  },
}
SCSS
$custom: #2f518c;
$custom-light: #7281ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2f518c",
  "rgb": {
    "r": 47,
    "g": 81,
    "b": 140
  },
  "hsl": {
    "h": 218.065,
    "s": 49.733,
    "l": 36.667
  },
  "oklch": {
    "l": 0.44003,
    "c": 0.10533,
    "h": 260.7
  },
  "luminance": 0.08383
}

Semantic roles & 50–950 ramp

primary
#2F518C
secondary
#B49663
accent
#A74FD9
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2F518C

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

Preview Lab → · Contrast checker → · Palette generator →

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