#2F5B9E#2F5B9E

#2F5B9E is a mid, moderate blue. Relative luminance 0.106; OKLCH L 47.5% C 0.119 H 258.6°. Best body text is #FFFFFF at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#2F5B9E
RGBrgb(47, 91, 158)
HSLhsl(216, 54%, 40%)
HSVhsv(216, 70%, 62%)
CMYKcmyk(70.3%, 42.4%, 0%, 38%)
CIE-LABlab(38.82, 7.98, -40.90)
CIE-LCHlch(38.82, 41.67, 281.05°)
OKLaboklab(47.49% -0.0234 -0.1167)
OKLCHoklch(47.49% 0.119 258.6)
XYZxyz(11.0827, 10.5540, 33.7942)
Luminance0.1056 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5B9E #9E722F
analogous
#2F929E #2F5B9E #3A2F9E
triadic
#2F5B9E #9E2F5B #5B9E2F
tetradic
#2F5B9E #9E2F92 #9E722F #2F9E3A
square
#2F5B9E #9E2F92 #9E722F #2F9E3A
split-complementary
#2F5B9E #9E3A2F #929E2F
monochromatic
#132540 #21406F #2F5B9E #4377C7 #7299D5

Accessibility & contrast

On white

6.75
#2F5B9E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#2F5B9E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5B9E
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5B9E#FFFFFF#000000##FFFFFF
##2F5B9E1.006.753.116.75
#FFFFFF6.751.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B61A1
Deuteranopia (green-blind)
#29579D
Tritanopia (blue-blind)
#006B75
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2f5b9e;
/* rgb */ color: rgb(47, 91, 158);
/* oklch */ color: oklch(47.5% 0.119 258.6);
Tailwind
colors: {
  custom: {
    50: '#7588bb',
    500: '#2f5b9e',
    950: '#000000',
  },
}
SCSS
$custom: #2f5b9e;
$custom-light: #7588bb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5b9e",
  "rgb": {
    "r": 47,
    "g": 91,
    "b": 158
  },
  "hsl": {
    "h": 216.216,
    "s": 54.146,
    "l": 40.196
  },
  "oklch": {
    "l": 0.47489,
    "c": 0.11907,
    "h": 258.6
  },
  "luminance": 0.10555
}

Semantic roles & 50–950 ramp

primary
#2F5B9E
secondary
#BD9D6C
accent
#A34ADE
background
#F7F8FB
surface
#EEEFF6
border
#C9CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2F5B9E

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

Preview Lab → · Contrast checker → · Palette generator →

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