#2F5C9E#2F5C9E

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

Color values

HEX#2F5C9E
RGBrgb(47, 92, 158)
HSLhsl(216, 54%, 40%)
HSVhsv(216, 70%, 62%)
CMYKcmyk(70.3%, 41.8%, 0%, 38%)
CIE-LABlab(39.12, 7.34, -40.42)
CIE-LCHlch(39.12, 41.08, 280.29°)
OKLaboklab(47.72% -0.0244 -0.1153)
OKLCHoklch(47.72% 0.118 258)
XYZxyz(11.1688, 10.7261, 33.8229)
Luminance0.1073 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5C9E #9E712F
analogous
#2F939E #2F5C9E #3A2F9E
triadic
#2F5C9E #9E2F5C #5C9E2F
tetradic
#2F5C9E #9E2F93 #9E712F #2F9E3A
square
#2F5C9E #9E2F93 #9E712F #2F9E3A
split-complementary
#2F5C9E #9E3A2F #939E2F
monochromatic
#132540 #21416F #2F5C9E #4379C7 #729AD5

Accessibility & contrast

On white

6.68
#2F5C9E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#2F5C9E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5C9E
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5C9E#FFFFFF#000000##FFFFFF
##2F5C9E1.006.683.156.68
#FFFFFF6.681.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f5c9e;
/* rgb */ color: rgb(47, 92, 158);
/* oklch */ color: oklch(47.7% 0.118 258.0);
Tailwind
colors: {
  custom: {
    50: '#7589bb',
    500: '#2f5c9e',
    950: '#000000',
  },
}
SCSS
$custom: #2f5c9e;
$custom-light: #7589bb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5c9e",
  "rgb": {
    "r": 47,
    "g": 92,
    "b": 158
  },
  "hsl": {
    "h": 215.676,
    "s": 54.146,
    "l": 40.196
  },
  "oklch": {
    "l": 0.47719,
    "c": 0.11789,
    "h": 258
  },
  "luminance": 0.10727
}

Semantic roles & 50–950 ramp

primary
#2F5C9E
secondary
#BD9C6C
accent
#A24ADE
background
#F7F8FB
surface
#EEF0F6
border
#C9CBD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2F5C9E

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

Preview Lab → · Contrast checker → · Palette generator →

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