#2F5DD3#2F5DD3

#2F5DD3 is a mid, vivid blue. Relative luminance 0.131; OKLCH L 51.8% C 0.189 H 264.5°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#2F5DD3
RGBrgb(47, 93, 211)
HSLhsl(223, 65%, 51%)
HSVhsv(223, 78%, 83%)
CMYKcmyk(77.7%, 55.9%, 0%, 17.3%)
CIE-LABlab(42.96, 26.67, -65.23)
CIE-LCHlch(42.96, 70.47, 292.24°)
OKLaboklab(51.8% -0.0181 -0.1883)
OKLCHoklch(51.8% 0.189 264.5)
XYZxyz(16.8403, 13.1342, 63.2630)
Luminance0.1314 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5DD3 #D3A52F
analogous
#2FAFD3 #2F5DD3 #532FD3
triadic
#2F5DD3 #D32F5D #5DD32F
tetradic
#2F5DD3 #D32FAF #D3A52F #2FD353
square
#2F5DD3 #D32FAF #D3A52F #2FD353
split-complementary
#2F5DD3 #D3532F #AFD32F
monochromatic
#183070 #2246A2 #2F5DD3 #6284DE #94ACE8

Accessibility & contrast

On white

5.79
#2F5DD3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#2F5DD3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5DD3
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5DD3#FFFFFF#000000##FFFFFF
##2F5DD31.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f5dd3;
/* rgb */ color: rgb(47, 93, 211);
/* oklch */ color: oklch(51.8% 0.189 264.5);
Tailwind
colors: {
  custom: {
    50: '#808ae1',
    500: '#2f5dd3',
    950: '#000000',
  },
}
SCSS
$custom: #2f5dd3;
$custom-light: #808ae1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5dd3",
  "rgb": {
    "r": 47,
    "g": 93,
    "b": 211
  },
  "hsl": {
    "h": 223.171,
    "s": 65.079,
    "l": 50.588
  },
  "oklch": {
    "l": 0.51798,
    "c": 0.18913,
    "h": 264.5
  },
  "luminance": 0.13136
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F5DD3

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

Preview Lab → · Contrast checker → · Palette generator →

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