#2F5CA5#2F5CA5

#2F5CA5 is a mid, vivid blue. Relative luminance 0.110; OKLCH L 48.2% C 0.128 H 259.6°. Best body text is #FFFFFF at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#2F5CA5
RGBrgb(47, 92, 165)
HSLhsl(217, 56%, 42%)
HSVhsv(217, 72%, 65%)
CMYKcmyk(71.5%, 44.2%, 0%, 35.3%)
CIE-LABlab(39.54, 9.97, -43.92)
CIE-LCHlch(39.54, 45.04, 282.79°)
OKLaboklab(48.18% -0.023 -0.1256)
OKLCHoklch(48.18% 0.128 259.6)
XYZxyz(11.7885, 10.9740, 37.0869)
Luminance0.1098 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5CA5 #A5782F
analogous
#2F97A5 #2F5CA5 #3D2FA5
triadic
#2F5CA5 #A52F5C #5CA52F
tetradic
#2F5CA5 #A52F97 #A5782F #2FA53D
square
#2F5CA5 #A52F97 #A5782F #2FA53D
split-complementary
#2F5CA5 #A53D2F #97A52F
monochromatic
#142746 #214175 #2F5CA5 #4779CB #769CD8

Accessibility & contrast

On white

6.57
#2F5CA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#2F5CA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5CA5
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5CA5#FFFFFF#000000##FFFFFF
##2F5CA51.006.573.206.57
#FFFFFF6.571.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3863A8
Deuteranopia (green-blind)
#2358A4
Tritanopia (blue-blind)
#006D78
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #2f5ca5;
/* rgb */ color: rgb(47, 92, 165);
/* oklch */ color: oklch(48.2% 0.128 259.6);
Tailwind
colors: {
  custom: {
    50: '#7689c0',
    500: '#2f5ca5',
    950: '#000000',
  },
}
SCSS
$custom: #2f5ca5;
$custom-light: #7689c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5ca5",
  "rgb": {
    "r": 47,
    "g": 92,
    "b": 165
  },
  "hsl": {
    "h": 217.119,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.48181,
    "c": 0.1277,
    "h": 259.6
  },
  "luminance": 0.10975
}

Semantic roles & 50–950 ramp

primary
#2F5CA5
secondary
#C0A170
accent
#A649DF
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #2F5CA5

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

Preview Lab → · Contrast checker → · Palette generator →

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