#2F5DAA#2F5DAA

#2F5DAA is a mid, vivid blue. Relative luminance 0.113; OKLCH L 48.7% C 0.133 H 260.1°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#2F5DAA
RGBrgb(47, 93, 170)
HSLhsl(218, 57%, 43%)
HSVhsv(218, 72%, 67%)
CMYKcmyk(72.4%, 45.3%, 0%, 33.3%)
CIE-LABlab(40.14, 11.21, -45.92)
CIE-LCHlch(40.14, 47.27, 283.71°)
OKLaboklab(48.75% -0.023 -0.1315)
OKLCHoklch(48.75% 0.133 260.1)
XYZxyz(12.3397, 11.3340, 39.5598)
Luminance0.1134 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5DAA #AA7C2F
analogous
#2F9AAA #2F5DAA #3F2FAA
triadic
#2F5DAA #AA2F5D #5DAA2F
tetradic
#2F5DAA #AA2F9A #AA7C2F #2FAA3F
square
#2F5DAA #AA2F9A #AA7C2F #2FAA3F
split-complementary
#2F5DAA #AA3F2F #9AAA2F
monochromatic
#14294A #22437A #2F5DAA #497BCD #799EDA

Accessibility & contrast

On white

6.43
#2F5DAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#2F5DAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5DAA
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5DAA#FFFFFF#000000##FFFFFF
##2F5DAA1.006.433.276.43
#FFFFFF6.431.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3665AD
Deuteranopia (green-blind)
#1E59A8
Tritanopia (blue-blind)
#006F7B
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2f5daa;
/* rgb */ color: rgb(47, 93, 170);
/* oklch */ color: oklch(48.7% 0.133 260.1);
Tailwind
colors: {
  custom: {
    50: '#778ac4',
    500: '#2f5daa',
    950: '#000000',
  },
}
SCSS
$custom: #2f5daa;
$custom-light: #778ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5daa",
  "rgb": {
    "r": 47,
    "g": 93,
    "b": 170
  },
  "hsl": {
    "h": 217.561,
    "s": 56.682,
    "l": 42.549
  },
  "oklch": {
    "l": 0.48745,
    "c": 0.13347,
    "h": 260.1
  },
  "luminance": 0.11335
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F5DAA

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

Preview Lab → · Contrast checker → · Palette generator →

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