#2F5995#2F5995

#2F5995 is a mid, moderate blue. Relative luminance 0.099; OKLCH L 46.4% C 0.109 H 257.5°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#2F5995
RGBrgb(47, 89, 149)
HSLhsl(215, 52%, 38%)
HSVhsv(215, 68%, 58%)
CMYKcmyk(68.5%, 40.3%, 0%, 41.6%)
CIE-LABlab(37.69, 5.91, -37.28)
CIE-LCHlch(37.69, 37.75, 279.01°)
OKLaboklab(46.45% -0.0235 -0.1062)
OKLCHoklch(46.45% 0.109 257.5)
XYZxyz(10.1675, 9.9180, 29.8065)
Luminance0.0992 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5995 #956B2F
analogous
#2F8C95 #2F5995 #382F95
triadic
#2F5995 #952F59 #59952F
tetradic
#2F5995 #952F8C #956B2F #2F9538
square
#2F5995 #952F8C #956B2F #2F9538
split-complementary
#2F5995 #95382F #8C952F
monochromatic
#122138 #203D66 #2F5995 #3F75C2 #6D96D1

Accessibility & contrast

On white

7.04
#2F5995 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#2F5995 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5995
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5995#FFFFFF#000000##FFFFFF
##2F59951.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E5E97
Deuteranopia (green-blind)
#2F5494
Tritanopia (blue-blind)
#006770
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2f5995;
/* rgb */ color: rgb(47, 89, 149);
/* oklch */ color: oklch(46.4% 0.109 257.5);
Tailwind
colors: {
  custom: {
    50: '#7387b4',
    500: '#2f5995',
    950: '#000000',
  },
}
SCSS
$custom: #2f5995;
$custom-light: #7387b4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5995",
  "rgb": {
    "r": 47,
    "g": 89,
    "b": 149
  },
  "hsl": {
    "h": 215.294,
    "s": 52.041,
    "l": 38.431
  },
  "oklch": {
    "l": 0.46446,
    "c": 0.10873,
    "h": 257.5
  },
  "luminance": 0.09919
}

Semantic roles & 50–950 ramp

primary
#2F5995
secondary
#B89767
accent
#A14CDB
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #2F5995

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

Preview Lab → · Contrast checker → · Palette generator →

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