#2F5DBC#2F5DBC

#2F5DBC is a mid, vivid blue. Relative luminance 0.121; OKLCH L 50.0% C 0.158 H 262.7°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#2F5DBC
RGBrgb(47, 93, 188)
HSLhsl(220, 60%, 46%)
HSVhsv(220, 75%, 74%)
CMYKcmyk(75%, 50.5%, 0%, 26.3%)
CIE-LABlab(41.31, 18.02, -54.60)
CIE-LCHlch(41.31, 57.50, 288.26°)
OKLaboklab(50.03% -0.0202 -0.157)
OKLCHoklch(50.03% 0.158 262.7)
XYZxyz(14.1605, 12.0623, 49.1492)
Luminance0.1206 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5DBC #BC8E2F
analogous
#2FA3BC #2F5DBC #482FBC
triadic
#2F5DBC #BC2F5D #5DBC2F
tetradic
#2F5DBC #BC2FA3 #BC8E2F #2FBC48
square
#2F5DBC #BC2FA3 #BC8E2F #2FBC48
split-complementary
#2F5DBC #BC482F #A3BC2F
monochromatic
#172D5A #23458B #2F5DBC #547ED4 #85A3E0

Accessibility & contrast

On white

6.15
#2F5DBC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#2F5DBC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5DBC
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5DBC#FFFFFF#000000##FFFFFF
##2F5DBC1.006.153.416.15
#FFFFFF6.151.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2368BF
Deuteranopia (green-blind)
#005BBA
Tritanopia (blue-blind)
#007483
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #2f5dbc;
/* rgb */ color: rgb(47, 93, 188);
/* oklch */ color: oklch(50.0% 0.158 262.7);
Tailwind
colors: {
  custom: {
    50: '#7b8ad1',
    500: '#2f5dbc',
    950: '#000000',
  },
}
SCSS
$custom: #2f5dbc;
$custom-light: #7b8ad1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5dbc",
  "rgb": {
    "r": 47,
    "g": 93,
    "b": 188
  },
  "hsl": {
    "h": 220.426,
    "s": 60,
    "l": 46.078
  },
  "oklch": {
    "l": 0.50025,
    "c": 0.15831,
    "h": 262.7
  },
  "luminance": 0.12064
}

Semantic roles & 50–950 ramp

primary
#2F5DBC
secondary
#CAB17D
accent
#AF45E3
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #2F5DBC

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

Preview Lab → · Contrast checker → · Palette generator →

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