#2F59DC#2F59DC

#2F59DC is a mid, highly saturated blue. Relative luminance 0.129; OKLCH L 51.8% C 0.206 H 265.8°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#2F59DC
RGBrgb(47, 89, 220)
HSLhsl(225, 71%, 52%)
HSVhsv(225, 79%, 86%)
CMYKcmyk(78.6%, 59.5%, 0%, 13.7%)
CIE-LABlab(42.63, 32.57, -70.91)
CIE-LCHlch(42.63, 78.03, 294.67°)
OKLaboklab(51.77% -0.0152 -0.205)
OKLCHoklch(51.77% 0.206 265.8)
XYZxyz(17.6584, 12.9143, 69.2583)
Luminance0.1292 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F59DC #DCB22F
analogous
#2FAFDC #2F59DC #5C2FDC
triadic
#2F59DC #DC2F59 #59DC2F
tetradic
#2F59DC #DC2FAF #DCB22F #2FDC5C
square
#2F59DC #DC2FAF #DCB22F #2FDC5C
split-complementary
#2F59DC #DC5C2F #AFDC2F
monochromatic
#152E7C #1E41B0 #2F59DC #6383E5 #98ADEE

Accessibility & contrast

On white

5.86
#2F59DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#2F59DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F59DC
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F59DC#FFFFFF#000000##FFFFFF
##2F59DC1.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DE0
Deuteranopia (green-blind)
#005DD9
Tritanopia (blue-blind)
#007B92
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #2f59dc;
/* rgb */ color: rgb(47, 89, 220);
/* oklch */ color: oklch(51.8% 0.206 265.8);
Tailwind
colors: {
  custom: {
    50: '#8387e8',
    500: '#2f59dc',
    950: '#000000',
  },
}
SCSS
$custom: #2f59dc;
$custom-light: #8387e8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f59dc",
  "rgb": {
    "r": 47,
    "g": 89,
    "b": 220
  },
  "hsl": {
    "h": 225.434,
    "s": 71.193,
    "l": 52.353
  },
  "oklch": {
    "l": 0.51768,
    "c": 0.20557,
    "h": 265.8
  },
  "luminance": 0.12916
}

Semantic roles & 50–950 ramp

primary
#2F59DC
secondary
#D9C78E
accent
#C23AEE
background
#F8F8FE
surface
#F0EFFD
border
#CBCAD5
text
#0D0B16
muted
#7D7C84

Preview Lab

Preview with #2F59DC

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

Preview Lab → · Contrast checker → · Palette generator →

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