#2F58B1#2F58B1

#2F58B1 is a mid, vivid blue. Relative luminance 0.108; OKLCH L 48.1% C 0.149 H 263.3°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#2F58B1
RGBrgb(47, 88, 177)
HSLhsl(221, 58%, 44%)
HSVhsv(221, 73%, 69%)
CMYKcmyk(73.4%, 50.3%, 0%, 30.6%)
CIE-LABlab(39.17, 17.12, -51.62)
CIE-LCHlch(39.17, 54.38, 288.35°)
OKLaboklab(48.15% -0.0174 -0.1483)
OKLCHoklch(48.15% 0.149 263.3)
XYZxyz(12.5950, 10.7568, 42.9989)
Luminance0.1076 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F58B1 #B1882F
analogous
#2F99B1 #2F58B1 #472FB1
triadic
#2F58B1 #B12F58 #58B12F
tetradic
#2F58B1 #B12F99 #B1882F #2FB147
square
#2F58B1 #B12F99 #B1882F #2FB147
split-complementary
#2F58B1 #B1472F #99B12F
monochromatic
#152850 #224081 #2F58B1 #4D77D0 #7E9CDD

Accessibility & contrast

On white

6.66
#2F58B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#2F58B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F58B1
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F58B1#FFFFFF#000000##FFFFFF
##2F58B11.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2363B4
Deuteranopia (green-blind)
#0057AF
Tritanopia (blue-blind)
#006D7C
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #2f58b1;
/* rgb */ color: rgb(47, 88, 177);
/* oklch */ color: oklch(48.1% 0.149 263.3);
Tailwind
colors: {
  custom: {
    50: '#7986c9',
    500: '#2f58b1',
    950: '#000000',
  },
}
SCSS
$custom: #2f58b1;
$custom-light: #7986c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f58b1",
  "rgb": {
    "r": 47,
    "g": 88,
    "b": 177
  },
  "hsl": {
    "h": 221.077,
    "s": 58.036,
    "l": 43.922
  },
  "oklch": {
    "l": 0.48148,
    "c": 0.14933,
    "h": 263.3
  },
  "luminance": 0.10758
}

Semantic roles & 50–950 ramp

primary
#2F58B1
secondary
#C5AC76
accent
#B047E1
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2F58B1

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

Preview Lab → · Contrast checker → · Palette generator →

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