#2F58B9#2F58B9

#2F58B9 is a mid, vivid blue. Relative luminance 0.111; OKLCH L 48.7% C 0.160 H 264.1°. Best body text is #FFFFFF at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#2F58B9
RGBrgb(47, 88, 185)
HSLhsl(222, 59%, 45%)
HSVhsv(222, 75%, 73%)
CMYKcmyk(74.6%, 52.4%, 0%, 27.5%)
CIE-LABlab(39.72, 20.15, -55.42)
CIE-LCHlch(39.72, 58.97, 289.98°)
OKLaboklab(48.75% -0.0165 -0.1595)
OKLCHoklch(48.75% 0.16 264.1)
XYZxyz(13.4159, 11.0851, 47.3221)
Luminance0.1109 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F58B9 #B9902F
analogous
#2F9DB9 #2F58B9 #4B2FB9
triadic
#2F58B9 #B92F58 #58B92F
tetradic
#2F58B9 #B92F9D #B9902F #2FB94B
square
#2F58B9 #B92F9D #B9902F #2FB94B
split-complementary
#2F58B9 #B94B2F #9DB92F
monochromatic
#162A57 #234188 #2F58B9 #5278D3 #839EDF

Accessibility & contrast

On white

6.53
#2F58B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#2F58B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F58B9
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F58B9#FFFFFF#000000##FFFFFF
##2F58B91.006.533.226.53
#FFFFFF6.531.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1564BC
Deuteranopia (green-blind)
#0058B7
Tritanopia (blue-blind)
#006F80
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #2f58b9;
/* rgb */ color: rgb(47, 88, 185);
/* oklch */ color: oklch(48.7% 0.160 264.1);
Tailwind
colors: {
  custom: {
    50: '#7b86cf',
    500: '#2f58b9',
    950: '#000000',
  },
}
SCSS
$custom: #2f58b9;
$custom-light: #7b86cf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f58b9",
  "rgb": {
    "r": 47,
    "g": 88,
    "b": 185
  },
  "hsl": {
    "h": 222.174,
    "s": 59.483,
    "l": 45.49
  },
  "oklch": {
    "l": 0.48748,
    "c": 0.16036,
    "h": 264.1
  },
  "luminance": 0.11087
}

Semantic roles & 50–950 ramp

primary
#2F58B9
secondary
#C9B27B
accent
#B445E3
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #2F58B9

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

Preview Lab → · Contrast checker → · Palette generator →

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