#2F58AD#2F58AD

#2F58AD is a mid, vivid blue. Relative luminance 0.106; OKLCH L 47.9% C 0.144 H 262.8°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#2F58AD
RGBrgb(47, 88, 173)
HSLhsl(220, 57%, 43%)
HSVhsv(220, 73%, 68%)
CMYKcmyk(72.8%, 49.1%, 0%, 32.2%)
CIE-LABlab(38.90, 15.61, -49.69)
CIE-LCHlch(38.90, 52.08, 287.44°)
OKLaboklab(47.86% -0.018 -0.1426)
OKLCHoklch(47.86% 0.144 262.8)
XYZxyz(12.2022, 10.5996, 40.9299)
Luminance0.1060 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F58AD #AD842F
analogous
#2F97AD #2F58AD #452FAD
triadic
#2F58AD #AD2F58 #58AD2F
tetradic
#2F58AD #AD2F97 #AD842F #2FAD45
square
#2F58AD #AD2F97 #AD842F #2FAD45
split-complementary
#2F58AD #AD452F #97AD2F
monochromatic
#15274D #22407D #2F58AD #4B76CE #7B9ADB

Accessibility & contrast

On white

6.73
#2F58AD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#2F58AD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F58AD
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F58AD#FFFFFF#000000##FFFFFF
##2F58AD1.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2862B0
Deuteranopia (green-blind)
#0056AB
Tritanopia (blue-blind)
#006C7A
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #2f58ad;
/* rgb */ color: rgb(47, 88, 173);
/* oklch */ color: oklch(47.9% 0.144 262.8);
Tailwind
colors: {
  custom: {
    50: '#7886c6',
    500: '#2f58ad',
    950: '#000000',
  },
}
SCSS
$custom: #2f58ad;
$custom-light: #7886c6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f58ad",
  "rgb": {
    "r": 47,
    "g": 88,
    "b": 173
  },
  "hsl": {
    "h": 220.476,
    "s": 57.273,
    "l": 43.137
  },
  "oklch": {
    "l": 0.47855,
    "c": 0.14377,
    "h": 262.8
  },
  "luminance": 0.10601
}

Semantic roles & 50–950 ramp

primary
#2F58AD
secondary
#C4AA74
accent
#AF47E1
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2F58AD

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

Preview Lab → · Contrast checker → · Palette generator →

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