#2F5EAA#2F5EAA

#2F5EAA is a mid, vivid blue. Relative luminance 0.115; OKLCH L 49.0% C 0.132 H 259.6°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#2F5EAA
RGBrgb(47, 94, 170)
HSLhsl(217, 57%, 43%)
HSVhsv(217, 72%, 67%)
CMYKcmyk(72.4%, 44.7%, 0%, 33.3%)
CIE-LABlab(40.43, 10.56, -45.46)
CIE-LCHlch(40.43, 46.67, 283.08°)
OKLaboklab(48.97% -0.0239 -0.1301)
OKLCHoklch(48.97% 0.132 259.6)
XYZxyz(12.4281, 11.5107, 39.5892)
Luminance0.1151 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5EAA #AA7B2F
analogous
#2F9CAA #2F5EAA #3D2FAA
triadic
#2F5EAA #AA2F5E #5EAA2F
tetradic
#2F5EAA #AA2F9C #AA7B2F #2FAA3D
square
#2F5EAA #AA2F9C #AA7B2F #2FAA3D
split-complementary
#2F5EAA #AA3D2F #9CAA2F
monochromatic
#14294A #22437A #2F5EAA #497CCD #799EDA

Accessibility & contrast

On white

6.36
#2F5EAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#2F5EAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5EAA
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5EAA#FFFFFF#000000##FFFFFF
##2F5EAA1.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3865AD
Deuteranopia (green-blind)
#215AA8
Tritanopia (blue-blind)
#00707B
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2f5eaa;
/* rgb */ color: rgb(47, 94, 170);
/* oklch */ color: oklch(49.0% 0.132 259.6);
Tailwind
colors: {
  custom: {
    50: '#778bc4',
    500: '#2f5eaa',
    950: '#000000',
  },
}
SCSS
$custom: #2f5eaa;
$custom-light: #778bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5eaa",
  "rgb": {
    "r": 47,
    "g": 94,
    "b": 170
  },
  "hsl": {
    "h": 217.073,
    "s": 56.682,
    "l": 42.549
  },
  "oklch": {
    "l": 0.48969,
    "c": 0.13227,
    "h": 259.6
  },
  "luminance": 0.11512
}

Semantic roles & 50–950 ramp

primary
#2F5EAA
secondary
#C2A472
accent
#A648E0
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2F5EAA

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

Preview Lab → · Contrast checker → · Palette generator →

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