#2F5182#2F5182

#2F5182 is a dark, moderate blue. Relative luminance 0.081; OKLCH L 43.4% C 0.091 H 257.6°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#2F5182
RGBrgb(47, 81, 130)
HSLhsl(215, 47%, 35%)
HSVhsv(215, 64%, 51%)
CMYKcmyk(63.8%, 37.7%, 0%, 49%)
CIE-LABlab(34.19, 4.08, -31.26)
CIE-LCHlch(34.19, 31.53, 277.43°)
OKLaboklab(43.37% -0.0195 -0.0887)
OKLCHoklch(43.37% 0.091 257.6)
XYZxyz(8.1426, 8.1002, 22.2491)
Luminance0.0810 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5182 #82602F
analogous
#2F7B82 #2F5182 #372F82
triadic
#2F5182 #822F51 #51822F
tetradic
#2F5182 #822F7B #82602F #2F8237
square
#2F5182 #822F7B #82602F #2F8237
split-complementary
#2F5182 #82372F #7B822F
monochromatic
#0E1928 #1F3555 #2F5182 #3F6DAF #648DC7

Accessibility & contrast

On white

8.01
#2F5182 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#2F5182 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5182
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5182#FFFFFF#000000##FFFFFF
##2F51821.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C5584
Deuteranopia (green-blind)
#314D81
Tritanopia (blue-blind)
#005C63
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2f5182;
/* rgb */ color: rgb(47, 81, 130);
/* oklch */ color: oklch(43.4% 0.091 257.6);
Tailwind
colors: {
  custom: {
    50: '#7081a6',
    500: '#2f5182',
    950: '#000000',
  },
}
SCSS
$custom: #2f5182;
$custom-light: #7081a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5182",
  "rgb": {
    "r": 47,
    "g": 81,
    "b": 130
  },
  "hsl": {
    "h": 215.422,
    "s": 46.893,
    "l": 34.706
  },
  "oklch": {
    "l": 0.43369,
    "c": 0.09078,
    "h": 257.6
  },
  "luminance": 0.08101
}

Semantic roles & 50–950 ramp

primary
#2F5182
secondary
#AE8E5F
accent
#A051D7
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A0F
muted
#7B7C7F

Preview Lab

Preview with #2F5182

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

Preview Lab → · Contrast checker → · Palette generator →

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