#2F5DBA#2F5DBA

#2F5DBA is a mid, vivid blue. Relative luminance 0.120; OKLCH L 49.9% C 0.156 H 262.4°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#2F5DBA
RGBrgb(47, 93, 186)
HSLhsl(220, 60%, 46%)
HSVhsv(220, 75%, 73%)
CMYKcmyk(74.7%, 50%, 0%, 27.1%)
CIE-LABlab(41.18, 17.26, -53.65)
CIE-LCHlch(41.18, 56.36, 287.83°)
OKLaboklab(49.88% -0.0205 -0.1542)
OKLCHoklch(49.88% 0.156 262.4)
XYZxyz(13.9464, 11.9767, 48.0216)
Luminance0.1198 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5DBA #BA8C2F
analogous
#2FA2BA #2F5DBA #462FBA
triadic
#2F5DBA #BA2F5D #5DBA2F
tetradic
#2F5DBA #BA2FA2 #BA8C2F #2FBA46
square
#2F5DBA #BA2FA2 #BA8C2F #2FBA46
split-complementary
#2F5DBA #BA462F #A2BA2F
monochromatic
#162C58 #234589 #2F5DBA #537DD3 #84A2E0

Accessibility & contrast

On white

6.18
#2F5DBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#2F5DBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5DBA
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5DBA#FFFFFF#000000##FFFFFF
##2F5DBA1.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2668BD
Deuteranopia (green-blind)
#005BB8
Tritanopia (blue-blind)
#007382
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #2f5dba;
/* rgb */ color: rgb(47, 93, 186);
/* oklch */ color: oklch(49.9% 0.156 262.4);
Tailwind
colors: {
  custom: {
    50: '#7b8acf',
    500: '#2f5dba',
    950: '#000000',
  },
}
SCSS
$custom: #2f5dba;
$custom-light: #7b8acf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5dba",
  "rgb": {
    "r": 47,
    "g": 93,
    "b": 186
  },
  "hsl": {
    "h": 220.144,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.49878,
    "c": 0.15557,
    "h": 262.4
  },
  "luminance": 0.11978
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F5DBA

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

Preview Lab → · Contrast checker → · Palette generator →

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