#2F5C9C#2F5C9C

#2F5C9C is a mid, moderate blue. Relative luminance 0.107; OKLCH L 47.6% C 0.115 H 257.5°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#2F5C9C
RGBrgb(47, 92, 156)
HSLhsl(215, 54%, 40%)
HSVhsv(215, 70%, 61%)
CMYKcmyk(69.9%, 41%, 0%, 38.8%)
CIE-LABlab(39.00, 6.59, -39.41)
CIE-LCHlch(39.00, 39.96, 279.49°)
OKLaboklab(47.59% -0.0249 -0.1124)
OKLCHoklch(47.59% 0.115 257.5)
XYZxyz(10.9980, 10.6578, 32.9236)
Luminance0.1066 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5C9C #9C6F2F
analogous
#2F939C #2F5C9C #382F9C
triadic
#2F5C9C #9C2F5C #5C9C2F
tetradic
#2F5C9C #9C2F93 #9C6F2F #2F9C38
square
#2F5C9C #9C2F93 #9C6F2F #2F9C38
split-complementary
#2F5C9C #9C382F #939C2F
monochromatic
#13253E #21406D #2F5C9C #4279C6 #719AD4

Accessibility & contrast

On white

6.71
#2F5C9C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#2F5C9C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5C9C
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5C9C#FFFFFF#000000##FFFFFF
##2F5C9C1.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E619F
Deuteranopia (green-blind)
#2D579B
Tritanopia (blue-blind)
#006B74
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #2f5c9c;
/* rgb */ color: rgb(47, 92, 156);
/* oklch */ color: oklch(47.6% 0.115 257.5);
Tailwind
colors: {
  custom: {
    50: '#7489b9',
    500: '#2f5c9c',
    950: '#000000',
  },
}
SCSS
$custom: #2f5c9c;
$custom-light: #7489b9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5c9c",
  "rgb": {
    "r": 47,
    "g": 92,
    "b": 156
  },
  "hsl": {
    "h": 215.229,
    "s": 53.695,
    "l": 39.804
  },
  "oklch": {
    "l": 0.4759,
    "c": 0.1151,
    "h": 257.5
  },
  "luminance": 0.10659
}

Semantic roles & 50–950 ramp

primary
#2F5C9C
secondary
#BC9A6B
accent
#A14BDD
background
#F7F8FB
surface
#EDF0F6
border
#C8CBD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #2F5C9C

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

Preview Lab → · Contrast checker → · Palette generator →

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