#2F5EAB#2F5EAB

#2F5EAB is a mid, vivid blue. Relative luminance 0.116; OKLCH L 49.0% C 0.134 H 259.8°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#2F5EAB
RGBrgb(47, 94, 171)
HSLhsl(217, 57%, 43%)
HSVhsv(217, 73%, 67%)
CMYKcmyk(72.5%, 45%, 0%, 32.9%)
CIE-LABlab(40.49, 10.94, -45.95)
CIE-LCHlch(40.49, 47.23, 283.39°)
OKLaboklab(49.04% -0.0237 -0.1315)
OKLCHoklch(49.04% 0.134 259.8)
XYZxyz(12.5230, 11.5487, 40.0893)
Luminance0.1155 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5EAB #AB7C2F
analogous
#2F9CAB #2F5EAB #3E2FAB
triadic
#2F5EAB #AB2F5E #5EAB2F
tetradic
#2F5EAB #AB2F9C #AB7C2F #2FAB3E
square
#2F5EAB #AB2F9C #AB7C2F #2FAB3E
split-complementary
#2F5EAB #AB3E2F #9CAB2F
monochromatic
#15294B #22447B #2F5EAB #4A7CCD #7A9FDA

Accessibility & contrast

On white

6.34
#2F5EAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#2F5EAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5EAB
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5EAB#FFFFFF#000000##FFFFFF
##2F5EAB1.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3766AE
Deuteranopia (green-blind)
#1F5AA9
Tritanopia (blue-blind)
#00707C
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2f5eab;
/* rgb */ color: rgb(47, 94, 171);
/* oklch */ color: oklch(49.0% 0.134 259.8);
Tailwind
colors: {
  custom: {
    50: '#778bc4',
    500: '#2f5eab',
    950: '#000000',
  },
}
SCSS
$custom: #2f5eab;
$custom-light: #778bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5eab",
  "rgb": {
    "r": 47,
    "g": 94,
    "b": 171
  },
  "hsl": {
    "h": 217.258,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.49036,
    "c": 0.13366,
    "h": 259.8
  },
  "luminance": 0.1155
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F5EAB

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

Preview Lab → · Contrast checker → · Palette generator →

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