#2F58A6#2F58A6

#2F58A6 is a mid, vivid blue. Relative luminance 0.103; OKLCH L 47.4% C 0.134 H 261.8°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#2F58A6
RGBrgb(47, 88, 166)
HSLhsl(219, 56%, 42%)
HSVhsv(219, 72%, 65%)
CMYKcmyk(71.7%, 47%, 0%, 34.9%)
CIE-LABlab(38.44, 12.96, -46.28)
CIE-LCHlch(38.44, 48.06, 285.64°)
OKLaboklab(47.36% -0.0191 -0.1326)
OKLCHoklch(47.36% 0.134 261.8)
XYZxyz(11.5425, 10.3357, 37.4557)
Luminance0.1034 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F58A6 #A67D2F
analogous
#2F94A6 #2F58A6 #422FA6
triadic
#2F58A6 #A62F58 #58A62F
tetradic
#2F58A6 #A62F94 #A67D2F #2FA642
square
#2F58A6 #A62F94 #A67D2F #2FA642
split-complementary
#2F58A6 #A6422F #94A62F
monochromatic
#142547 #213F76 #2F58A6 #4775CB #7799D8

Accessibility & contrast

On white

6.85
#2F58A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2F58A6
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F58A6#FFFFFF#000000##FFFFFF
##2F58A61.006.853.076.85
#FFFFFF6.851.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F60A9
Deuteranopia (green-blind)
#1555A4
Tritanopia (blue-blind)
#006A77
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2f58a6;
/* rgb */ color: rgb(47, 88, 166);
/* oklch */ color: oklch(47.4% 0.134 261.8);
Tailwind
colors: {
  custom: {
    50: '#7786c1',
    500: '#2f58a6',
    950: '#000000',
  },
}
SCSS
$custom: #2f58a6;
$custom-light: #7786c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f58a6",
  "rgb": {
    "r": 47,
    "g": 88,
    "b": 166
  },
  "hsl": {
    "h": 219.328,
    "s": 55.869,
    "l": 41.765
  },
  "oklch": {
    "l": 0.47356,
    "c": 0.13396,
    "h": 261.8
  },
  "luminance": 0.10337
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F58A6

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

Preview Lab → · Contrast checker → · Palette generator →

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