#2F5AC7#2F5AC7

#2F5AC7 is a mid, vivid blue. Relative luminance 0.120; OKLCH L 50.2% C 0.177 H 264.5°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#2F5AC7
RGBrgb(47, 90, 199)
HSLhsl(223, 62%, 48%)
HSVhsv(223, 76%, 78%)
CMYKcmyk(76.4%, 54.8%, 0%, 22%)
CIE-LABlab(41.28, 24.12, -61.05)
CIE-LCHlch(41.28, 65.64, 291.55°)
OKLaboklab(50.24% -0.0168 -0.176)
OKLCHoklch(50.24% 0.177 264.5)
XYZxyz(15.1336, 12.0385, 55.5478)
Luminance0.1204 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5AC7 #C79C2F
analogous
#2FA6C7 #2F5AC7 #502FC7
triadic
#2F5AC7 #C72F5A #5AC72F
tetradic
#2F5AC7 #C72FA6 #C79C2F #2FC750
square
#2F5AC7 #C72FA6 #C79C2F #2FC750
split-complementary
#2F5AC7 #C7502F #A6C72F
monochromatic
#182D64 #234495 #2F5AC7 #5B7ED8 #8CA5E4

Accessibility & contrast

On white

6.16
#2F5AC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2F5AC7
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5AC7#FFFFFF#000000##FFFFFF
##2F5AC71.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CB
Deuteranopia (green-blind)
#005BC5
Tritanopia (blue-blind)
#007588
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #2f5ac7;
/* rgb */ color: rgb(47, 90, 199);
/* oklch */ color: oklch(50.2% 0.177 264.5);
Tailwind
colors: {
  custom: {
    50: '#7e88d9',
    500: '#2f5ac7',
    950: '#000000',
  },
}
SCSS
$custom: #2f5ac7;
$custom-light: #7e88d9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5ac7",
  "rgb": {
    "r": 47,
    "g": 90,
    "b": 199
  },
  "hsl": {
    "h": 223.026,
    "s": 61.789,
    "l": 48.235
  },
  "oklch": {
    "l": 0.50244,
    "c": 0.17684,
    "h": 264.5
  },
  "luminance": 0.1204
}

Semantic roles & 50–950 ramp

primary
#2F5AC7
secondary
#CEB984
accent
#B743E5
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0B0B15
muted
#7C7C83

Preview Lab

Preview with #2F5AC7

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

Preview Lab → · Contrast checker → · Palette generator →

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