#2F5DA8#2F5DA8

#2F5DA8 is a mid, vivid blue. Relative luminance 0.113; OKLCH L 48.6% C 0.131 H 259.7°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#2F5DA8
RGBrgb(47, 93, 168)
HSLhsl(217, 56%, 42%)
HSVhsv(217, 72%, 66%)
CMYKcmyk(72%, 44.6%, 0%, 34.1%)
CIE-LABlab(40.01, 10.45, -44.94)
CIE-LCHlch(40.01, 46.14, 283.09°)
OKLaboklab(48.61% -0.0233 -0.1286)
OKLCHoklch(48.61% 0.131 259.7)
XYZxyz(12.1520, 11.2589, 38.5709)
Luminance0.1126 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5DA8 #A87A2F
analogous
#2F9AA8 #2F5DA8 #3E2FA8
triadic
#2F5DA8 #A82F5D #5DA82F
tetradic
#2F5DA8 #A82F9A #A87A2F #2FA83E
square
#2F5DA8 #A82F9A #A87A2F #2FA83E
split-complementary
#2F5DA8 #A83E2F #9AA82F
monochromatic
#142848 #224378 #2F5DA8 #487ACC #789DD9

Accessibility & contrast

On white

6.46
#2F5DA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#2F5DA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5DA8
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5DA8#FFFFFF#000000##FFFFFF
##2F5DA81.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3864AB
Deuteranopia (green-blind)
#2159A6
Tritanopia (blue-blind)
#006F7A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #2f5da8;
/* rgb */ color: rgb(47, 93, 168);
/* oklch */ color: oklch(48.6% 0.131 259.7);
Tailwind
colors: {
  custom: {
    50: '#778ac2',
    500: '#2f5da8',
    950: '#000000',
  },
}
SCSS
$custom: #2f5da8;
$custom-light: #778ac2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5da8",
  "rgb": {
    "r": 47,
    "g": 93,
    "b": 168
  },
  "hsl": {
    "h": 217.19,
    "s": 56.279,
    "l": 42.157
  },
  "oklch": {
    "l": 0.48609,
    "c": 0.13068,
    "h": 259.7
  },
  "luminance": 0.1126
}

Semantic roles & 50–950 ramp

primary
#2F5DA8
secondary
#C1A371
accent
#A648E0
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #2F5DA8

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

Preview Lab → · Contrast checker → · Palette generator →

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