#2F58A8#2F58A8

#2F58A8 is a mid, vivid blue. Relative luminance 0.104; OKLCH L 47.5% C 0.137 H 262.1°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#2F58A8
RGBrgb(47, 88, 168)
HSLhsl(220, 56%, 42%)
HSVhsv(220, 72%, 66%)
CMYKcmyk(72%, 47.6%, 0%, 34.1%)
CIE-LABlab(38.57, 13.71, -47.26)
CIE-LCHlch(38.57, 49.21, 286.18°)
OKLaboklab(47.5% -0.0187 -0.1355)
OKLCHoklch(47.5% 0.137 262.1)
XYZxyz(11.7274, 10.4097, 38.4294)
Luminance0.1041 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F58A8 #A87F2F
analogous
#2F95A8 #2F58A8 #422FA8
triadic
#2F58A8 #A82F58 #58A82F
tetradic
#2F58A8 #A82F95 #A87F2F #2FA842
square
#2F58A8 #A82F95 #A87F2F #2FA842
split-complementary
#2F58A8 #A8422F #95A82F
monochromatic
#142648 #223F78 #2F58A8 #4875CC #7899D9

Accessibility & contrast

On white

6.81
#2F58A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#2F58A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F58A8
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F58A8#FFFFFF#000000##FFFFFF
##2F58A81.006.813.086.81
#FFFFFF6.811.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E61AB
Deuteranopia (green-blind)
#1056A6
Tritanopia (blue-blind)
#006B78
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2f58a8;
/* rgb */ color: rgb(47, 88, 168);
/* oklch */ color: oklch(47.5% 0.137 262.1);
Tailwind
colors: {
  custom: {
    50: '#7786c2',
    500: '#2f58a8',
    950: '#000000',
  },
}
SCSS
$custom: #2f58a8;
$custom-light: #7786c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f58a8",
  "rgb": {
    "r": 47,
    "g": 88,
    "b": 168
  },
  "hsl": {
    "h": 219.669,
    "s": 56.279,
    "l": 42.157
  },
  "oklch": {
    "l": 0.47497,
    "c": 0.13678,
    "h": 262.1
  },
  "luminance": 0.10411
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F58A8

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

Preview Lab → · Contrast checker → · Palette generator →

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