#2F5A9D#2F5A9D

#2F5A9D is a mid, moderate blue. Relative luminance 0.104; OKLCH L 47.2% C 0.119 H 259.0°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#2F5A9D
RGBrgb(47, 90, 157)
HSLhsl(217, 54%, 40%)
HSVhsv(217, 70%, 62%)
CMYKcmyk(70.1%, 42.7%, 0%, 38.4%)
CIE-LABlab(38.46, 8.26, -40.87)
CIE-LCHlch(38.46, 41.69, 281.42°)
OKLaboklab(47.19% -0.0227 -0.1167)
OKLCHoklch(47.19% 0.119 259)
XYZxyz(10.9121, 10.3499, 33.3144)
Luminance0.1035 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5A9D #9D722F
analogous
#2F919D #2F5A9D #3B2F9D
triadic
#2F5A9D #9D2F5A #5A9D2F
tetradic
#2F5A9D #9D2F91 #9D722F #2F9D3B
square
#2F5A9D #9D2F91 #9D722F #2F9D3B
split-complementary
#2F5A9D #9D3B2F #919D2F
monochromatic
#13243F #213F6E #2F5A9D #4376C7 #7298D5

Accessibility & contrast

On white

6.84
#2F5A9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#2F5A9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5A9D
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5A9D#FFFFFF#000000##FFFFFF
##2F5A9D1.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A60A0
Deuteranopia (green-blind)
#28569C
Tritanopia (blue-blind)
#006A74
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2f5a9d;
/* rgb */ color: rgb(47, 90, 157);
/* oklch */ color: oklch(47.2% 0.119 259.0);
Tailwind
colors: {
  custom: {
    50: '#7588ba',
    500: '#2f5a9d',
    950: '#000000',
  },
}
SCSS
$custom: #2f5a9d;
$custom-light: #7588ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5a9d",
  "rgb": {
    "r": 47,
    "g": 90,
    "b": 157
  },
  "hsl": {
    "h": 216.545,
    "s": 53.922,
    "l": 40
  },
  "oklch": {
    "l": 0.47194,
    "c": 0.11884,
    "h": 259
  },
  "luminance": 0.10351
}

Semantic roles & 50–950 ramp

primary
#2F5A9D
secondary
#BC9D6B
accent
#A44BDD
background
#F7F8FB
surface
#EEEFF6
border
#C9CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2F5A9D

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

Preview Lab → · Contrast checker → · Palette generator →

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