#2F5D9E#2F5D9E

#2F5D9E is a mid, moderate blue. Relative luminance 0.109; OKLCH L 47.9% C 0.117 H 257.4°. Best body text is #FFFFFF at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#2F5D9E
RGBrgb(47, 93, 158)
HSLhsl(215, 54%, 40%)
HSVhsv(215, 70%, 62%)
CMYKcmyk(70.3%, 41.1%, 0%, 38%)
CIE-LABlab(39.41, 6.69, -39.95)
CIE-LCHlch(39.41, 40.51, 279.51°)
OKLaboklab(47.95% -0.0254 -0.1139)
OKLCHoklch(47.95% 0.117 257.4)
XYZxyz(11.2560, 10.9005, 33.8519)
Luminance0.1090 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5D9E #9E702F
analogous
#2F949E #2F5D9E #382F9E
triadic
#2F5D9E #9E2F5D #5D9E2F
tetradic
#2F5D9E #9E2F94 #9E702F #2F9E38
square
#2F5D9E #9E2F94 #9E702F #2F9E38
split-complementary
#2F5D9E #9E382F #949E2F
monochromatic
#132540 #21416F #2F5D9E #437AC7 #729BD5

Accessibility & contrast

On white

6.60
#2F5D9E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#2F5D9E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5D9E
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5D9E#FFFFFF#000000##FFFFFF
##2F5D9E1.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F62A1
Deuteranopia (green-blind)
#2D589D
Tritanopia (blue-blind)
#006C76
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #2f5d9e;
/* rgb */ color: rgb(47, 93, 158);
/* oklch */ color: oklch(47.9% 0.117 257.4);
Tailwind
colors: {
  custom: {
    50: '#758abb',
    500: '#2f5d9e',
    950: '#000000',
  },
}
SCSS
$custom: #2f5d9e;
$custom-light: #758abb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5d9e",
  "rgb": {
    "r": 47,
    "g": 93,
    "b": 158
  },
  "hsl": {
    "h": 215.135,
    "s": 54.146,
    "l": 40.196
  },
  "oklch": {
    "l": 0.47949,
    "c": 0.11674,
    "h": 257.4
  },
  "luminance": 0.10902
}

Semantic roles & 50–950 ramp

primary
#2F5D9E
secondary
#BD9B6C
accent
#A04ADE
background
#F7F8FB
surface
#EEF0F6
border
#C9CBD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2F5D9E

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

Preview Lab → · Contrast checker → · Palette generator →

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