#2F5C9D#2F5C9D

#2F5C9D is a mid, moderate blue. Relative luminance 0.107; OKLCH L 47.7% C 0.117 H 257.8°. Best body text is #FFFFFF at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#2F5C9D
RGBrgb(47, 92, 157)
HSLhsl(215, 54%, 40%)
HSVhsv(215, 70%, 62%)
CMYKcmyk(70.1%, 41.4%, 0%, 38.4%)
CIE-LABlab(39.06, 6.96, -39.92)
CIE-LCHlch(39.06, 40.52, 279.89°)
OKLaboklab(47.65% -0.0247 -0.1139)
OKLCHoklch(47.65% 0.117 257.8)
XYZxyz(11.0830, 10.6918, 33.3714)
Luminance0.1069 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5C9D #9D702F
analogous
#2F939D #2F5C9D #392F9D
triadic
#2F5C9D #9D2F5C #5C9D2F
tetradic
#2F5C9D #9D2F93 #9D702F #2F9D39
square
#2F5C9D #9D2F93 #9D702F #2F9D39
split-complementary
#2F5C9D #9D392F #939D2F
monochromatic
#13253F #21406E #2F5C9D #4379C7 #729AD5

Accessibility & contrast

On white

6.69
#2F5C9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#2F5C9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5C9D
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5C9D#FFFFFF#000000##FFFFFF
##2F5C9D1.006.693.146.69
#FFFFFF6.691.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E62A0
Deuteranopia (green-blind)
#2C579C
Tritanopia (blue-blind)
#006B75
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #2f5c9d;
/* rgb */ color: rgb(47, 92, 157);
/* oklch */ color: oklch(47.7% 0.117 257.8);
Tailwind
colors: {
  custom: {
    50: '#7589ba',
    500: '#2f5c9d',
    950: '#000000',
  },
}
SCSS
$custom: #2f5c9d;
$custom-light: #7589ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5c9d",
  "rgb": {
    "r": 47,
    "g": 92,
    "b": 157
  },
  "hsl": {
    "h": 215.455,
    "s": 53.922,
    "l": 40
  },
  "oklch": {
    "l": 0.47654,
    "c": 0.1165,
    "h": 257.8
  },
  "luminance": 0.10693
}

Semantic roles & 50–950 ramp

primary
#2F5C9D
secondary
#BC9B6B
accent
#A14BDD
background
#F7F8FB
surface
#EEF0F6
border
#C9CBD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2F5C9D

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

Preview Lab → · Contrast checker → · Palette generator →

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