#2F5EA8#2F5EA8

#2F5EA8 is a mid, vivid blue. Relative luminance 0.114; OKLCH L 48.8% C 0.129 H 259.2°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#2F5EA8
RGBrgb(47, 94, 168)
HSLhsl(217, 56%, 42%)
HSVhsv(217, 72%, 66%)
CMYKcmyk(72%, 44%, 0%, 34.1%)
CIE-LABlab(40.30, 9.80, -44.47)
CIE-LCHlch(40.30, 45.54, 282.43°)
OKLaboklab(48.83% -0.0243 -0.1272)
OKLCHoklch(48.83% 0.129 259.2)
XYZxyz(12.2403, 11.4356, 38.6004)
Luminance0.1144 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5EA8 #A8792F
analogous
#2F9BA8 #2F5EA8 #3C2FA8
triadic
#2F5EA8 #A82F5E #5EA82F
tetradic
#2F5EA8 #A82F9B #A8792F #2FA83C
square
#2F5EA8 #A82F9B #A8792F #2FA83C
split-complementary
#2F5EA8 #A83C2F #9BA82F
monochromatic
#142848 #224378 #2F5EA8 #487BCC #789ED9

Accessibility & contrast

On white

6.39
#2F5EA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#2F5EA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5EA8
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5EA8#FFFFFF#000000##FFFFFF
##2F5EA81.006.393.296.39
#FFFFFF6.391.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A65AB
Deuteranopia (green-blind)
#245AA6
Tritanopia (blue-blind)
#006F7B
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2f5ea8;
/* rgb */ color: rgb(47, 94, 168);
/* oklch */ color: oklch(48.8% 0.129 259.2);
Tailwind
colors: {
  custom: {
    50: '#778bc2',
    500: '#2f5ea8',
    950: '#000000',
  },
}
SCSS
$custom: #2f5ea8;
$custom-light: #778bc2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5ea8",
  "rgb": {
    "r": 47,
    "g": 94,
    "b": 168
  },
  "hsl": {
    "h": 216.694,
    "s": 56.279,
    "l": 42.157
  },
  "oklch": {
    "l": 0.48834,
    "c": 0.12949,
    "h": 259.2
  },
  "luminance": 0.11437
}

Semantic roles & 50–950 ramp

primary
#2F5EA8
secondary
#C1A271
accent
#A548E0
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #2F5EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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