#2F508C#2F508C

#2F508C is a dark, moderate blue. Relative luminance 0.082; OKLCH L 43.8% C 0.107 H 261.4°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#2F508C
RGBrgb(47, 80, 140)
HSLhsl(219, 50%, 37%)
HSVhsv(219, 66%, 55%)
CMYKcmyk(66.4%, 42.9%, 0%, 45.1%)
CIE-LABlab(34.47, 8.44, -36.96)
CIE-LCHlch(34.47, 37.91, 282.86°)
OKLaboklab(43.77% -0.016 -0.1054)
OKLCHoklch(43.77% 0.107 261.4)
XYZxyz(8.7729, 8.2343, 25.9329)
Luminance0.0824 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F508C #8C6B2F
analogous
#2F7F8C #2F508C #3D2F8C
triadic
#2F508C #8C2F50 #508C2F
tetradic
#2F508C #8C2F7F #8C6B2F #2F8C3D
square
#2F508C #8C2F7F #8C6B2F #2F8C3D
split-complementary
#2F508C #8C3D2F #7F8C2F
monochromatic
#101C30 #20365E #2F508C #3E6ABA #698CCD

Accessibility & contrast

On white

7.93
#2F508C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#2F508C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F508C
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F508C#FFFFFF#000000##FFFFFF
##2F508C1.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#35568E
Deuteranopia (green-blind)
#264D8B
Tritanopia (blue-blind)
#005E67
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2f508c;
/* rgb */ color: rgb(47, 80, 140);
/* oklch */ color: oklch(43.8% 0.107 261.4);
Tailwind
colors: {
  custom: {
    50: '#7280ae',
    500: '#2f508c',
    950: '#000000',
  },
}
SCSS
$custom: #2f508c;
$custom-light: #7280ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2f508c",
  "rgb": {
    "r": 47,
    "g": 80,
    "b": 140
  },
  "hsl": {
    "h": 218.71,
    "s": 49.733,
    "l": 36.667
  },
  "oklch": {
    "l": 0.43771,
    "c": 0.10657,
    "h": 261.4
  },
  "luminance": 0.08235
}

Semantic roles & 50–950 ramp

primary
#2F508C
secondary
#B49763
accent
#A84FD9
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2F508C

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

Preview Lab → · Contrast checker → · Palette generator →

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