#2F5EAC#2F5EAC

#2F5EAC is a mid, vivid blue. Relative luminance 0.116; OKLCH L 49.1% C 0.135 H 260.0°. Best body text is #FFFFFF at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#2F5EAC
RGBrgb(47, 94, 172)
HSLhsl(217, 57%, 43%)
HSVhsv(217, 73%, 67%)
CMYKcmyk(72.7%, 45.3%, 0%, 32.5%)
CIE-LABlab(40.55, 11.31, -46.44)
CIE-LCHlch(40.55, 47.80, 283.69°)
OKLaboklab(49.11% -0.0235 -0.133)
OKLCHoklch(49.11% 0.135 260)
XYZxyz(12.6187, 11.5869, 40.5932)
Luminance0.1159 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5EAC #AC7D2F
analogous
#2F9CAC #2F5EAC #3E2FAC
triadic
#2F5EAC #AC2F5E #5EAC2F
tetradic
#2F5EAC #AC2F9C #AC7D2F #2FAC3E
square
#2F5EAC #AC2F9C #AC7D2F #2FAC3E
split-complementary
#2F5EAC #AC3E2F #9CAC2F
monochromatic
#15294C #22447C #2F5EAC #4B7CCE #7B9FDB

Accessibility & contrast

On white

6.33
#2F5EAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#2F5EAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5EAC
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5EAC#FFFFFF#000000##FFFFFF
##2F5EAC1.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3766AF
Deuteranopia (green-blind)
#1E5AAA
Tritanopia (blue-blind)
#00707C
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #2f5eac;
/* rgb */ color: rgb(47, 94, 172);
/* oklch */ color: oklch(49.1% 0.135 260.0);
Tailwind
colors: {
  custom: {
    50: '#788bc5',
    500: '#2f5eac',
    950: '#000000',
  },
}
SCSS
$custom: #2f5eac;
$custom-light: #788bc5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5eac",
  "rgb": {
    "r": 47,
    "g": 94,
    "b": 172
  },
  "hsl": {
    "h": 217.44,
    "s": 57.078,
    "l": 42.941
  },
  "oklch": {
    "l": 0.49105,
    "c": 0.13505,
    "h": 260
  },
  "luminance": 0.11588
}

Semantic roles & 50–950 ramp

primary
#2F5EAC
secondary
#C3A574
accent
#A747E0
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2F5EAC

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

Preview Lab → · Contrast checker → · Palette generator →

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