#2F59A7#2F59A7

#2F59A7 is a mid, vivid blue. Relative luminance 0.105; OKLCH L 47.6% C 0.134 H 261.5°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#2F59A7
RGBrgb(47, 89, 167)
HSLhsl(219, 56%, 42%)
HSVhsv(219, 72%, 65%)
CMYKcmyk(71.9%, 46.7%, 0%, 34.5%)
CIE-LABlab(38.79, 12.68, -46.30)
CIE-LCHlch(38.79, 48.01, 285.31°)
OKLaboklab(47.65% -0.0198 -0.1327)
OKLCHoklch(47.65% 0.134 261.5)
XYZxyz(11.7172, 10.5379, 37.9682)
Luminance0.1054 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F59A7 #A77D2F
analogous
#2F95A7 #2F59A7 #412FA7
triadic
#2F59A7 #A72F59 #59A72F
tetradic
#2F59A7 #A72F95 #A77D2F #2FA741
square
#2F59A7 #A72F95 #A77D2F #2FA741
split-complementary
#2F59A7 #A7412F #95A72F
monochromatic
#142647 #224077 #2F59A7 #4876CB #789AD9

Accessibility & contrast

On white

6.76
#2F59A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#2F59A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F59A7
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F59A7#FFFFFF#000000##FFFFFF
##2F59A71.006.763.116.76
#FFFFFF6.761.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3161AA
Deuteranopia (green-blind)
#1756A5
Tritanopia (blue-blind)
#006B78
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2f59a7;
/* rgb */ color: rgb(47, 89, 167);
/* oklch */ color: oklch(47.6% 0.134 261.5);
Tailwind
colors: {
  custom: {
    50: '#7787c2',
    500: '#2f59a7',
    950: '#000000',
  },
}
SCSS
$custom: #2f59a7;
$custom-light: #7787c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f59a7",
  "rgb": {
    "r": 47,
    "g": 89,
    "b": 167
  },
  "hsl": {
    "h": 219,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.47647,
    "c": 0.13414,
    "h": 261.5
  },
  "luminance": 0.10539
}

Semantic roles & 50–950 ramp

primary
#2F59A7
secondary
#C1A571
accent
#AB48DF
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #2F59A7

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

Preview Lab → · Contrast checker → · Palette generator →

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