#2F5184#2F5184

#2F5184 is a dark, moderate blue. Relative luminance 0.082; OKLCH L 43.5% C 0.094 H 258.3°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#2F5184
RGBrgb(47, 81, 132)
HSLhsl(216, 47%, 35%)
HSVhsv(216, 64%, 52%)
CMYKcmyk(64.4%, 38.6%, 0%, 48.2%)
CIE-LABlab(34.30, 4.81, -32.32)
CIE-LCHlch(34.30, 32.68, 278.47°)
OKLaboklab(43.49% -0.019 -0.0917)
OKLCHoklch(43.49% 0.094 258.3)
XYZxyz(8.2781, 8.1544, 22.9630)
Luminance0.0815 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5184 #84622F
analogous
#2F7B84 #2F5184 #372F84
triadic
#2F5184 #842F51 #51842F
tetradic
#2F5184 #842F7B #84622F #2F8437
square
#2F5184 #842F7B #84622F #2F8437
split-complementary
#2F5184 #84372F #7B842F
monochromatic
#0F1A2A #1F3557 #2F5184 #3F6DB1 #658DC8

Accessibility & contrast

On white

7.98
#2F5184 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#2F5184 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5184
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5184#FFFFFF#000000##FFFFFF
##2F51841.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B5586
Deuteranopia (green-blind)
#2F4D83
Tritanopia (blue-blind)
#005D64
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2f5184;
/* rgb */ color: rgb(47, 81, 132);
/* oklch */ color: oklch(43.5% 0.094 258.3);
Tailwind
colors: {
  custom: {
    50: '#7081a8',
    500: '#2f5184',
    950: '#000000',
  },
}
SCSS
$custom: #2f5184;
$custom-light: #7081a8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5184",
  "rgb": {
    "r": 47,
    "g": 81,
    "b": 132
  },
  "hsl": {
    "h": 216,
    "s": 47.486,
    "l": 35.098
  },
  "oklch": {
    "l": 0.43493,
    "c": 0.09368,
    "h": 258.3
  },
  "luminance": 0.08155
}

Semantic roles & 50–950 ramp

primary
#2F5184
secondary
#AF8F60
accent
#A151D7
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A0F
muted
#7B7C7F

Preview Lab

Preview with #2F5184

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

Preview Lab → · Contrast checker → · Palette generator →

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