#2F5EA4#2F5EA4

#2F5EA4 is a mid, vivid blue. Relative luminance 0.113; OKLCH L 48.6% C 0.124 H 258.3°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#2F5EA4
RGBrgb(47, 94, 164)
HSLhsl(216, 55%, 41%)
HSVhsv(216, 71%, 64%)
CMYKcmyk(71.3%, 42.7%, 0%, 35.7%)
CIE-LABlab(40.06, 8.30, -42.49)
CIE-LCHlch(40.06, 43.29, 281.05°)
OKLaboklab(48.57% -0.0251 -0.1214)
OKLCHoklch(48.57% 0.124 258.3)
XYZxyz(11.8734, 11.2888, 36.6680)
Luminance0.1129 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5EA4 #A4752F
analogous
#2F99A4 #2F5EA4 #3A2FA4
triadic
#2F5EA4 #A42F5E #5EA42F
tetradic
#2F5EA4 #A42F99 #A4752F #2FA43A
square
#2F5EA4 #A42F99 #A4752F #2FA43A
split-complementary
#2F5EA4 #A43A2F #99A42F
monochromatic
#142745 #214374 #2F5EA4 #467BCA #769DD8

Accessibility & contrast

On white

6.45
#2F5EA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#2F5EA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5EA4
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5EA4#FFFFFF#000000##FFFFFF
##2F5EA41.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D64A7
Deuteranopia (green-blind)
#2959A3
Tritanopia (blue-blind)
#006E79
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #2f5ea4;
/* rgb */ color: rgb(47, 94, 164);
/* oklch */ color: oklch(48.6% 0.124 258.3);
Tailwind
colors: {
  custom: {
    50: '#768bbf',
    500: '#2f5ea4',
    950: '#000000',
  },
}
SCSS
$custom: #2f5ea4;
$custom-light: #768bbf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5ea4",
  "rgb": {
    "r": 47,
    "g": 94,
    "b": 164
  },
  "hsl": {
    "h": 215.897,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.48568,
    "c": 0.12393,
    "h": 258.3
  },
  "luminance": 0.1129
}

Semantic roles & 50–950 ramp

primary
#2F5EA4
secondary
#C09F6F
accent
#A349DF
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #2F5EA4

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

Preview Lab → · Contrast checker → · Palette generator →

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