#2F5DBD#2F5DBD

#2F5DBD is a mid, vivid blue. Relative luminance 0.121; OKLCH L 50.1% C 0.160 H 262.8°. Best body text is #FFFFFF at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#2F5DBD
RGBrgb(47, 93, 189)
HSLhsl(221, 60%, 46%)
HSVhsv(221, 75%, 74%)
CMYKcmyk(75.1%, 50.8%, 0%, 25.9%)
CIE-LABlab(41.38, 18.39, -55.07)
CIE-LCHlch(41.38, 58.06, 288.47°)
OKLaboklab(50.1% -0.0201 -0.1584)
OKLCHoklch(50.1% 0.16 262.8)
XYZxyz(14.2687, 12.1056, 49.7189)
Luminance0.1211 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5DBD #BD8F2F
analogous
#2FA4BD #2F5DBD #482FBD
triadic
#2F5DBD #BD2F5D #5DBD2F
tetradic
#2F5DBD #BD2FA4 #BD8F2F #2FBD48
square
#2F5DBD #BD2FA4 #BD8F2F #2FBD48
split-complementary
#2F5DBD #BD482F #A4BD2F
monochromatic
#172D5B #23458C #2F5DBD #557ED5 #86A3E1

Accessibility & contrast

On white

6.14
#2F5DBD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2F5DBD
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5DBD#FFFFFF#000000##FFFFFF
##2F5DBD1.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2168C0
Deuteranopia (green-blind)
#005BBB
Tritanopia (blue-blind)
#007484
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #2f5dbd;
/* rgb */ color: rgb(47, 93, 189);
/* oklch */ color: oklch(50.1% 0.160 262.8);
Tailwind
colors: {
  custom: {
    50: '#7b8ad1',
    500: '#2f5dbd',
    950: '#000000',
  },
}
SCSS
$custom: #2f5dbd;
$custom-light: #7b8ad1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5dbd",
  "rgb": {
    "r": 47,
    "g": 93,
    "b": 189
  },
  "hsl": {
    "h": 220.563,
    "s": 60.169,
    "l": 46.275
  },
  "oklch": {
    "l": 0.50099,
    "c": 0.15967,
    "h": 262.8
  },
  "luminance": 0.12107
}

Semantic roles & 50–950 ramp

primary
#2F5DBD
secondary
#CAB17E
accent
#B044E3
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #2F5DBD

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

Preview Lab → · Contrast checker → · Palette generator →

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