#2F57D3#2F57D3

#2F57D3 is a mid, vivid blue. Relative luminance 0.121; OKLCH L 50.6% C 0.196 H 265.9°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#2F57D3
RGBrgb(47, 87, 211)
HSLhsl(225, 65%, 51%)
HSVhsv(225, 78%, 83%)
CMYKcmyk(77.7%, 58.8%, 0%, 17.3%)
CIE-LABlab(41.41, 30.53, -67.76)
CIE-LCHlch(41.41, 74.32, 294.26°)
OKLaboklab(50.63% -0.0142 -0.1958)
OKLCHoklch(50.63% 0.196 265.9)
XYZxyz(16.3342, 12.1220, 63.0943)
Luminance0.1212 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F57D3 #D3AB2F
analogous
#2FA9D3 #2F57D3 #592FD3
triadic
#2F57D3 #D32F57 #57D32F
tetradic
#2F57D3 #D32FA9 #D3AB2F #2FD359
square
#2F57D3 #D32FA9 #D3AB2F #2FD359
split-complementary
#2F57D3 #D3592F #A9D32F
monochromatic
#182D70 #2242A2 #2F57D3 #6280DE #94A9E8

Accessibility & contrast

On white

6.13
#2F57D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#2F57D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F57D3
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F57D3#FFFFFF#000000##FFFFFF
##2F57D31.006.133.426.13
#FFFFFF6.131.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD7
Deuteranopia (green-blind)
#005AD1
Tritanopia (blue-blind)
#00768C
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #2f57d3;
/* rgb */ color: rgb(47, 87, 211);
/* oklch */ color: oklch(50.6% 0.196 265.9);
Tailwind
colors: {
  custom: {
    50: '#8185e1',
    500: '#2f57d3',
    950: '#000000',
  },
}
SCSS
$custom: #2f57d3;
$custom-light: #8185e1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f57d3",
  "rgb": {
    "r": 47,
    "g": 87,
    "b": 211
  },
  "hsl": {
    "h": 225.366,
    "s": 65.079,
    "l": 50.588
  },
  "oklch": {
    "l": 0.50631,
    "c": 0.1963,
    "h": 265.9
  },
  "luminance": 0.12124
}

Semantic roles & 50–950 ramp

primary
#2F57D3
secondary
#D3C28A
accent
#BF40E8
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #2F57D3

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

Preview Lab → · Contrast checker → · Palette generator →

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