#2F5DB5#2F5DB5

#2F5DB5 is a mid, vivid blue. Relative luminance 0.118; OKLCH L 49.5% C 0.149 H 261.8°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#2F5DB5
RGBrgb(47, 93, 181)
HSLhsl(219, 59%, 45%)
HSVhsv(219, 74%, 71%)
CMYKcmyk(74%, 48.6%, 0%, 29%)
CIE-LABlab(40.84, 15.37, -51.27)
CIE-LCHlch(40.84, 53.52, 286.69°)
OKLaboklab(49.52% -0.0212 -0.1472)
OKLCHoklch(49.52% 0.149 261.8)
XYZxyz(13.4241, 11.7678, 45.2710)
Luminance0.1177 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5DB5 #B5872F
analogous
#2FA0B5 #2F5DB5 #442FB5
triadic
#2F5DB5 #B52F5D #5DB52F
tetradic
#2F5DB5 #B52FA0 #B5872F #2FB544
square
#2F5DB5 #B52FA0 #B5872F #2FB544
split-complementary
#2F5DB5 #B5442F #A0B52F
monochromatic
#162B54 #224484 #2F5DB5 #507CD1 #80A1DE

Accessibility & contrast

On white

6.26
#2F5DB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#2F5DB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5DB5
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5DB5#FFFFFF#000000##FFFFFF
##2F5DB51.006.263.356.26
#FFFFFF6.261.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C67B8
Deuteranopia (green-blind)
#005BB3
Tritanopia (blue-blind)
#007280
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #2f5db5;
/* rgb */ color: rgb(47, 93, 181);
/* oklch */ color: oklch(49.5% 0.149 261.8);
Tailwind
colors: {
  custom: {
    50: '#7a8acc',
    500: '#2f5db5',
    950: '#000000',
  },
}
SCSS
$custom: #2f5db5;
$custom-light: #7a8acc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5db5",
  "rgb": {
    "r": 47,
    "g": 93,
    "b": 181
  },
  "hsl": {
    "h": 219.403,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.49515,
    "c": 0.1487,
    "h": 261.8
  },
  "luminance": 0.11769
}

Semantic roles & 50–950 ramp

primary
#2F5DB5
secondary
#C7AC79
accent
#AC46E2
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2F5DB5

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

Preview Lab → · Contrast checker → · Palette generator →

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