#2F58B3#2F58B3

#2F58B3 is a mid, vivid blue. Relative luminance 0.108; OKLCH L 48.3% C 0.152 H 263.5°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#2F58B3
RGBrgb(47, 88, 179)
HSLhsl(221, 58%, 44%)
HSVhsv(221, 74%, 70%)
CMYKcmyk(73.7%, 50.8%, 0%, 29.8%)
CIE-LABlab(39.30, 17.88, -52.57)
CIE-LCHlch(39.30, 55.53, 288.78°)
OKLaboklab(48.3% -0.0172 -0.1511)
OKLCHoklch(48.3% 0.152 263.5)
XYZxyz(12.7958, 10.8371, 44.0565)
Luminance0.1084 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F58B3 #B38A2F
analogous
#2F9AB3 #2F58B3 #482FB3
triadic
#2F58B3 #B32F58 #58B32F
tetradic
#2F58B3 #B32F9A #B38A2F #2FB348
square
#2F58B3 #B32F9A #B38A2F #2FB348
split-complementary
#2F58B3 #B3482F #9AB32F
monochromatic
#162852 #224083 #2F58B3 #4F77D1 #7F9CDD

Accessibility & contrast

On white

6.63
#2F58B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#2F58B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F58B3
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F58B3#FFFFFF#000000##FFFFFF
##2F58B31.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2063B6
Deuteranopia (green-blind)
#0057B1
Tritanopia (blue-blind)
#006E7D
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #2f58b3;
/* rgb */ color: rgb(47, 88, 179);
/* oklch */ color: oklch(48.3% 0.152 263.5);
Tailwind
colors: {
  custom: {
    50: '#7986ca',
    500: '#2f58b3',
    950: '#000000',
  },
}
SCSS
$custom: #2f58b3;
$custom-light: #7986ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2f58b3",
  "rgb": {
    "r": 47,
    "g": 88,
    "b": 179
  },
  "hsl": {
    "h": 221.364,
    "s": 58.407,
    "l": 44.314
  },
  "oklch": {
    "l": 0.48296,
    "c": 0.15211,
    "h": 263.5
  },
  "luminance": 0.10838
}

Semantic roles & 50–950 ramp

primary
#2F58B3
secondary
#C6AE78
accent
#B146E2
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2F58B3

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

Preview Lab → · Contrast checker → · Palette generator →

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