#2F5793#2F5793

#2F5793 is a mid, moderate blue. Relative luminance 0.095; OKLCH L 45.9% C 0.108 H 258.4°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#2F5793
RGBrgb(47, 87, 147)
HSLhsl(216, 52%, 38%)
HSVhsv(216, 68%, 58%)
CMYKcmyk(68%, 40.8%, 0%, 42.4%)
CIE-LABlab(36.98, 6.46, -37.22)
CIE-LCHlch(36.98, 37.77, 279.85°)
OKLaboklab(45.85% -0.0218 -0.106)
OKLCHoklch(45.85% 0.108 258.4)
XYZxyz(9.8451, 9.5263, 28.9180)
Luminance0.0953 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5793 #936B2F
analogous
#2F8993 #2F5793 #392F93
triadic
#2F5793 #932F57 #57932F
tetradic
#2F5793 #932F89 #936B2F #2F9339
square
#2F5793 #932F89 #936B2F #2F9339
split-complementary
#2F5793 #93392F #89932F
monochromatic
#112036 #203C65 #2F5793 #3E72C1 #6C94D0

Accessibility & contrast

On white

7.23
#2F5793 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#2F5793 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5793
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5793#FFFFFF#000000##FFFFFF
##2F57931.007.232.917.23
#FFFFFF7.231.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f5793;
/* rgb */ color: rgb(47, 87, 147);
/* oklch */ color: oklch(45.9% 0.108 258.4);
Tailwind
colors: {
  custom: {
    50: '#7386b3',
    500: '#2f5793',
    950: '#000000',
  },
}
SCSS
$custom: #2f5793;
$custom-light: #7386b3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5793",
  "rgb": {
    "r": 47,
    "g": 87,
    "b": 147
  },
  "hsl": {
    "h": 216,
    "s": 51.546,
    "l": 38.039
  },
  "oklch": {
    "l": 0.45852,
    "c": 0.10823,
    "h": 258.4
  },
  "luminance": 0.09527
}

Semantic roles & 50–950 ramp

primary
#2F5793
secondary
#B79766
accent
#A24DDB
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #2F5793

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

Preview Lab → · Contrast checker → · Palette generator →

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