#2F5CD3#2F5CD3

#2F5CD3 is a mid, vivid blue. Relative luminance 0.130; OKLCH L 51.6% C 0.190 H 264.7°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#2F5CD3
RGBrgb(47, 92, 211)
HSLhsl(224, 65%, 51%)
HSVhsv(224, 78%, 83%)
CMYKcmyk(77.7%, 56.4%, 0%, 17.3%)
CIE-LABlab(42.70, 27.31, -65.65)
CIE-LCHlch(42.70, 71.11, 292.59°)
OKLaboklab(51.6% -0.0174 -0.1895)
OKLCHoklch(51.6% 0.19 264.7)
XYZxyz(16.7531, 12.9598, 63.2339)
Luminance0.1296 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5CD3 #D3A62F
analogous
#2FAED3 #2F5CD3 #542FD3
triadic
#2F5CD3 #D32F5C #5CD32F
tetradic
#2F5CD3 #D32FAE #D3A62F #2FD354
square
#2F5CD3 #D32FAE #D3A62F #2FD354
split-complementary
#2F5CD3 #D3542F #AED32F
monochromatic
#183070 #2246A2 #2F5CD3 #6284DE #94ABE8

Accessibility & contrast

On white

5.85
#2F5CD3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#2F5CD3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5CD3
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5CD3#FFFFFF#000000##FFFFFF
##2F5CD31.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD7
Deuteranopia (green-blind)
#005ED1
Tritanopia (blue-blind)
#007A8E
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #2f5cd3;
/* rgb */ color: rgb(47, 92, 211);
/* oklch */ color: oklch(51.6% 0.190 264.7);
Tailwind
colors: {
  custom: {
    50: '#8089e1',
    500: '#2f5cd3',
    950: '#000000',
  },
}
SCSS
$custom: #2f5cd3;
$custom-light: #8089e1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5cd3",
  "rgb": {
    "r": 47,
    "g": 92,
    "b": 211
  },
  "hsl": {
    "h": 223.537,
    "s": 65.079,
    "l": 50.588
  },
  "oklch": {
    "l": 0.51601,
    "c": 0.19032,
    "h": 264.7
  },
  "luminance": 0.12962
}

Semantic roles & 50–950 ramp

primary
#2F5CD3
secondary
#D3BF8A
accent
#BA40E8
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #2F5CD3

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

Preview Lab → · Contrast checker → · Palette generator →

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