#2F5795#2F5795

#2F5795 is a mid, moderate blue. Relative luminance 0.096; OKLCH L 46.0% C 0.111 H 258.9°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#2F5795
RGBrgb(47, 87, 149)
HSLhsl(216, 52%, 38%)
HSVhsv(216, 68%, 58%)
CMYKcmyk(68.5%, 41.6%, 0%, 41.6%)
CIE-LABlab(37.10, 7.21, -38.24)
CIE-LCHlch(37.10, 38.91, 280.68°)
OKLaboklab(45.98% -0.0214 -0.109)
OKLCHoklch(45.98% 0.111 258.9)
XYZxyz(10.0034, 9.5897, 29.7517)
Luminance0.0959 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5795 #956D2F
analogous
#2F8A95 #2F5795 #3A2F95
triadic
#2F5795 #952F57 #57952F
tetradic
#2F5795 #952F8A #956D2F #2F953A
square
#2F5795 #952F8A #956D2F #2F953A
split-complementary
#2F5795 #953A2F #8A952F
monochromatic
#122138 #203C66 #2F5795 #3F72C2 #6D94D1

Accessibility & contrast

On white

7.20
#2F5795 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#2F5795 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5795
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5795#FFFFFF#000000##FFFFFF
##2F57951.007.202.927.20
#FFFFFF7.201.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B5C97
Deuteranopia (green-blind)
#2B5394
Tritanopia (blue-blind)
#00656E
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2f5795;
/* rgb */ color: rgb(47, 87, 149);
/* oklch */ color: oklch(46.0% 0.111 258.9);
Tailwind
colors: {
  custom: {
    50: '#7386b4',
    500: '#2f5795',
    950: '#000000',
  },
}
SCSS
$custom: #2f5795;
$custom-light: #7386b4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5795",
  "rgb": {
    "r": 47,
    "g": 87,
    "b": 149
  },
  "hsl": {
    "h": 216.471,
    "s": 52.041,
    "l": 38.431
  },
  "oklch": {
    "l": 0.45981,
    "c": 0.11108,
    "h": 258.9
  },
  "luminance": 0.09591
}

Semantic roles & 50–950 ramp

primary
#2F5795
secondary
#B89967
accent
#A34CDB
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #2F5795

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

Preview Lab → · Contrast checker → · Palette generator →

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