#2F538B#2F538B

#2F538B is a dark, moderate blue. Relative luminance 0.087; OKLCH L 44.4% C 0.101 H 258.9°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#2F538B
RGBrgb(47, 83, 139)
HSLhsl(217, 49%, 36%)
HSVhsv(217, 66%, 55%)
CMYKcmyk(66.2%, 40.3%, 0%, 45.5%)
CIE-LABlab(35.31, 6.09, -35.01)
CIE-LCHlch(35.31, 35.54, 279.87°)
OKLaboklab(44.41% -0.0195 -0.0996)
OKLCHoklch(44.41% 0.101 258.9)
XYZxyz(8.9241, 8.6541, 25.6212)
Luminance0.0866 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F538B #8B672F
analogous
#2F818B #2F538B #392F8B
triadic
#2F538B #8B2F53 #538B2F
tetradic
#2F538B #8B2F81 #8B672F #2F8B39
square
#2F538B #8B2F81 #8B672F #2F8B39
split-complementary
#2F538B #8B392F #818B2F
monochromatic
#101C30 #20385D #2F538B #3E6EB9 #688FCC

Accessibility & contrast

On white

7.69
#2F538B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#2F538B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F538B
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F538B#FFFFFF#000000##FFFFFF
##2F538B1.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A588D
Deuteranopia (green-blind)
#2D4F8A
Tritanopia (blue-blind)
#006068
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2f538b;
/* rgb */ color: rgb(47, 83, 139);
/* oklch */ color: oklch(44.4% 0.101 258.9);
Tailwind
colors: {
  custom: {
    50: '#7183ad',
    500: '#2f538b',
    950: '#000000',
  },
}
SCSS
$custom: #2f538b;
$custom-light: #7183ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2f538b",
  "rgb": {
    "r": 47,
    "g": 83,
    "b": 139
  },
  "hsl": {
    "h": 216.522,
    "s": 49.462,
    "l": 36.471
  },
  "oklch": {
    "l": 0.44405,
    "c": 0.10148,
    "h": 258.9
  },
  "luminance": 0.08655
}

Semantic roles & 50–950 ramp

primary
#2F538B
secondary
#B39463
accent
#A34FD9
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2F538B

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

Preview Lab → · Contrast checker → · Palette generator →

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