#2F5CAA#2F5CAA

#2F5CAA is a mid, vivid blue. Relative luminance 0.112; OKLCH L 48.5% C 0.135 H 260.6°. Best body text is #FFFFFF at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#2F5CAA
RGBrgb(47, 92, 170)
HSLhsl(218, 57%, 43%)
HSVhsv(218, 72%, 67%)
CMYKcmyk(72.4%, 45.9%, 0%, 33.3%)
CIE-LABlab(39.85, 11.86, -46.39)
CIE-LCHlch(39.85, 47.88, 284.34°)
OKLaboklab(48.52% -0.0221 -0.1329)
OKLCHoklch(48.52% 0.135 260.6)
XYZxyz(12.2525, 11.1596, 39.5307)
Luminance0.1116 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5CAA #AA7D2F
analogous
#2F99AA #2F5CAA #402FAA
triadic
#2F5CAA #AA2F5C #5CAA2F
tetradic
#2F5CAA #AA2F99 #AA7D2F #2FAA40
square
#2F5CAA #AA2F99 #AA7D2F #2FAA40
split-complementary
#2F5CAA #AA402F #99AA2F
monochromatic
#14284A #22427A #2F5CAA #4979CD #799DDA

Accessibility & contrast

On white

6.50
#2F5CAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#2F5CAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5CAA
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5CAA#FFFFFF#000000##FFFFFF
##2F5CAA1.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3464AD
Deuteranopia (green-blind)
#1B59A8
Tritanopia (blue-blind)
#006E7A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #2f5caa;
/* rgb */ color: rgb(47, 92, 170);
/* oklch */ color: oklch(48.5% 0.135 260.6);
Tailwind
colors: {
  custom: {
    50: '#7789c4',
    500: '#2f5caa',
    950: '#000000',
  },
}
SCSS
$custom: #2f5caa;
$custom-light: #7789c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5caa",
  "rgb": {
    "r": 47,
    "g": 92,
    "b": 170
  },
  "hsl": {
    "h": 218.049,
    "s": 56.682,
    "l": 42.549
  },
  "oklch": {
    "l": 0.48522,
    "c": 0.13468,
    "h": 260.6
  },
  "luminance": 0.11161
}

Semantic roles & 50–950 ramp

primary
#2F5CAA
secondary
#C2A572
accent
#A848E0
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2F5CAA

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

Preview Lab → · Contrast checker → · Palette generator →

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