#2F58A7#2F58A7

#2F58A7 is a mid, vivid blue. Relative luminance 0.104; OKLCH L 47.4% C 0.135 H 262.0°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#2F58A7
RGBrgb(47, 88, 167)
HSLhsl(220, 56%, 42%)
HSVhsv(220, 72%, 65%)
CMYKcmyk(71.9%, 47.3%, 0%, 34.5%)
CIE-LABlab(38.50, 13.33, -46.77)
CIE-LCHlch(38.50, 48.63, 285.91°)
OKLaboklab(47.43% -0.0189 -0.134)
OKLCHoklch(47.43% 0.135 262)
XYZxyz(11.6346, 10.3726, 37.9407)
Luminance0.1037 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F58A7 #A77E2F
analogous
#2F94A7 #2F58A7 #422FA7
triadic
#2F58A7 #A72F58 #58A72F
tetradic
#2F58A7 #A72F94 #A77E2F #2FA742
square
#2F58A7 #A72F94 #A77E2F #2FA742
split-complementary
#2F58A7 #A7422F #94A72F
monochromatic
#142647 #223F77 #2F58A7 #4875CB #7899D9

Accessibility & contrast

On white

6.83
#2F58A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#2F58A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F58A7
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F58A7#FFFFFF#000000##FFFFFF
##2F58A71.006.833.076.83
#FFFFFF6.831.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F61AA
Deuteranopia (green-blind)
#1355A5
Tritanopia (blue-blind)
#006B77
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2f58a7;
/* rgb */ color: rgb(47, 88, 167);
/* oklch */ color: oklch(47.4% 0.135 262.0);
Tailwind
colors: {
  custom: {
    50: '#7786c2',
    500: '#2f58a7',
    950: '#000000',
  },
}
SCSS
$custom: #2f58a7;
$custom-light: #7786c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f58a7",
  "rgb": {
    "r": 47,
    "g": 88,
    "b": 167
  },
  "hsl": {
    "h": 219.5,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.47426,
    "c": 0.13537,
    "h": 262
  },
  "luminance": 0.10374
}

Semantic roles & 50–950 ramp

primary
#2F58A7
secondary
#C1A671
accent
#AC48DF
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #2F58A7

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

Preview Lab → · Contrast checker → · Palette generator →

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