#2F518E#2F518E

#2F518E is a dark, moderate blue. Relative luminance 0.084; OKLCH L 44.1% C 0.108 H 261.2°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#2F518E
RGBrgb(47, 81, 142)
HSLhsl(219, 50%, 37%)
HSVhsv(219, 67%, 56%)
CMYKcmyk(66.9%, 43%, 0%, 44.3%)
CIE-LABlab(34.89, 8.52, -37.51)
CIE-LCHlch(34.89, 38.47, 282.80°)
OKLaboklab(44.14% -0.0166 -0.107)
OKLCHoklch(44.14% 0.108 261.2)
XYZxyz(8.9955, 8.4413, 26.7412)
Luminance0.0844 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F518E #8E6C2F
analogous
#2F818E #2F518E #3C2F8E
triadic
#2F518E #8E2F51 #518E2F
tetradic
#2F518E #8E2F81 #8E6C2F #2F8E3C
square
#2F518E #8E2F81 #8E6C2F #2F8E3C
split-complementary
#2F518E #8E3C2F #818E2F
monochromatic
#111D32 #203760 #2F518E #3E6BBC #6A8ECE

Accessibility & contrast

On white

7.81
#2F518E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F518E
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F518E#FFFFFF#000000##FFFFFF
##2F518E1.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#355790
Deuteranopia (green-blind)
#264E8D
Tritanopia (blue-blind)
#005F68
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2f518e;
/* rgb */ color: rgb(47, 81, 142);
/* oklch */ color: oklch(44.1% 0.108 261.2);
Tailwind
colors: {
  custom: {
    50: '#7281af',
    500: '#2f518e',
    950: '#000000',
  },
}
SCSS
$custom: #2f518e;
$custom-light: #7281af;
$custom-dark: #000000;
JSON
{
  "hex": "#2f518e",
  "rgb": {
    "r": 47,
    "g": 81,
    "b": 142
  },
  "hsl": {
    "h": 218.526,
    "s": 50.265,
    "l": 37.059
  },
  "oklch": {
    "l": 0.44135,
    "c": 0.10825,
    "h": 261.2
  },
  "luminance": 0.08442
}

Semantic roles & 50–950 ramp

primary
#2F518E
secondary
#B59864
accent
#A84EDA
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#090A10
muted
#7B7C7F

Preview Lab

Preview with #2F518E

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

Preview Lab → · Contrast checker → · Palette generator →

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