#2F5DAD#2F5DAD

#2F5DAD is a mid, vivid blue. Relative luminance 0.115; OKLCH L 49.0% C 0.138 H 260.6°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#2F5DAD
RGBrgb(47, 93, 173)
HSLhsl(218, 57%, 43%)
HSVhsv(218, 73%, 68%)
CMYKcmyk(72.8%, 46.2%, 0%, 32.2%)
CIE-LABlab(40.33, 12.34, -47.39)
CIE-LCHlch(40.33, 48.97, 284.59°)
OKLaboklab(48.95% -0.0224 -0.1358)
OKLCHoklch(48.95% 0.138 260.6)
XYZxyz(12.6268, 11.4488, 41.0714)
Luminance0.1145 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5DAD #AD7F2F
analogous
#2F9CAD #2F5DAD #402FAD
triadic
#2F5DAD #AD2F5D #5DAD2F
tetradic
#2F5DAD #AD2F9C #AD7F2F #2FAD40
square
#2F5DAD #AD2F9C #AD7F2F #2FAD40
split-complementary
#2F5DAD #AD402F #9CAD2F
monochromatic
#15294D #22437D #2F5DAD #4B7BCE #7B9EDB

Accessibility & contrast

On white

6.38
#2F5DAD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#2F5DAD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5DAD
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5DAD#FFFFFF#000000##FFFFFF
##2F5DAD1.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3465B0
Deuteranopia (green-blind)
#185AAB
Tritanopia (blue-blind)
#00707C
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2f5dad;
/* rgb */ color: rgb(47, 93, 173);
/* oklch */ color: oklch(49.0% 0.138 260.6);
Tailwind
colors: {
  custom: {
    50: '#788ac6',
    500: '#2f5dad',
    950: '#000000',
  },
}
SCSS
$custom: #2f5dad;
$custom-light: #788ac6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5dad",
  "rgb": {
    "r": 47,
    "g": 93,
    "b": 173
  },
  "hsl": {
    "h": 218.095,
    "s": 57.273,
    "l": 43.137
  },
  "oklch": {
    "l": 0.48951,
    "c": 0.13764,
    "h": 260.6
  },
  "luminance": 0.1145
}

Semantic roles & 50–950 ramp

primary
#2F5DAD
secondary
#C4A774
accent
#A947E1
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2F5DAD

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

Preview Lab → · Contrast checker → · Palette generator →

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