#2F58B2#2F58B2

#2F58B2 is a mid, vivid blue. Relative luminance 0.108; OKLCH L 48.2% C 0.151 H 263.4°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#2F58B2
RGBrgb(47, 88, 178)
HSLhsl(221, 58%, 44%)
HSVhsv(221, 74%, 70%)
CMYKcmyk(73.6%, 50.6%, 0%, 30.2%)
CIE-LABlab(39.24, 17.50, -52.10)
CIE-LCHlch(39.24, 54.96, 288.57°)
OKLaboklab(48.22% -0.0173 -0.1497)
OKLCHoklch(48.22% 0.151 263.4)
XYZxyz(12.6950, 10.7968, 43.5258)
Luminance0.1080 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F58B2 #B2892F
analogous
#2F9AB2 #2F58B2 #472FB2
triadic
#2F58B2 #B22F58 #58B22F
tetradic
#2F58B2 #B22F9A #B2892F #2FB247
square
#2F58B2 #B22F9A #B2892F #2FB247
split-complementary
#2F58B2 #B2472F #9AB22F
monochromatic
#152851 #224082 #2F58B2 #4E77D0 #7E9CDD

Accessibility & contrast

On white

6.65
#2F58B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#2F58B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F58B2
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F58B2#FFFFFF#000000##FFFFFF
##2F58B21.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2263B5
Deuteranopia (green-blind)
#0057B0
Tritanopia (blue-blind)
#006D7C
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #2f58b2;
/* rgb */ color: rgb(47, 88, 178);
/* oklch */ color: oklch(48.2% 0.151 263.4);
Tailwind
colors: {
  custom: {
    50: '#7986ca',
    500: '#2f58b2',
    950: '#000000',
  },
}
SCSS
$custom: #2f58b2;
$custom-light: #7986ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2f58b2",
  "rgb": {
    "r": 47,
    "g": 88,
    "b": 178
  },
  "hsl": {
    "h": 221.221,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.48222,
    "c": 0.15072,
    "h": 263.4
  },
  "luminance": 0.10798
}

Semantic roles & 50–950 ramp

primary
#2F58B2
secondary
#C6AD77
accent
#B146E1
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2F58B2

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

Preview Lab → · Contrast checker → · Palette generator →

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