#2F58A5#2F58A5

#2F58A5 is a mid, vivid blue. Relative luminance 0.103; OKLCH L 47.3% C 0.133 H 261.7°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#2F58A5
RGBrgb(47, 88, 165)
HSLhsl(219, 56%, 42%)
HSVhsv(219, 72%, 65%)
CMYKcmyk(71.5%, 46.7%, 0%, 35.3%)
CIE-LABlab(38.37, 12.58, -45.78)
CIE-LCHlch(38.37, 47.48, 285.36°)
OKLaboklab(47.29% -0.0192 -0.1311)
OKLCHoklch(47.29% 0.133 261.7)
XYZxyz(11.4511, 10.2992, 36.9745)
Luminance0.1030 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F58A5 #A57C2F
analogous
#2F93A5 #2F58A5 #412FA5
triadic
#2F58A5 #A52F58 #58A52F
tetradic
#2F58A5 #A52F93 #A57C2F #2FA541
square
#2F58A5 #A52F93 #A57C2F #2FA541
split-complementary
#2F58A5 #A5412F #93A52F
monochromatic
#142546 #213F75 #2F58A5 #4774CB #7698D8

Accessibility & contrast

On white

6.86
#2F58A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#2F58A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F58A5
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F58A5#FFFFFF#000000##FFFFFF
##2F58A51.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3060A8
Deuteranopia (green-blind)
#1755A3
Tritanopia (blue-blind)
#006A76
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2f58a5;
/* rgb */ color: rgb(47, 88, 165);
/* oklch */ color: oklch(47.3% 0.133 261.7);
Tailwind
colors: {
  custom: {
    50: '#7686c0',
    500: '#2f58a5',
    950: '#000000',
  },
}
SCSS
$custom: #2f58a5;
$custom-light: #7686c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f58a5",
  "rgb": {
    "r": 47,
    "g": 88,
    "b": 165
  },
  "hsl": {
    "h": 219.153,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.47286,
    "c": 0.13255,
    "h": 261.7
  },
  "luminance": 0.103
}

Semantic roles & 50–950 ramp

primary
#2F58A5
secondary
#C0A470
accent
#AB49DF
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #2F58A5

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

Preview Lab → · Contrast checker → · Palette generator →

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