#2F5894#2F5894

#2F5894 is a mid, moderate blue. Relative luminance 0.097; OKLCH L 46.1% C 0.108 H 257.9°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#2F5894
RGBrgb(47, 88, 148)
HSLhsl(216, 52%, 38%)
HSVhsv(216, 68%, 58%)
CMYKcmyk(68.2%, 40.5%, 0%, 42%)
CIE-LABlab(37.34, 6.19, -37.25)
CIE-LCHlch(37.34, 37.76, 279.43°)
OKLaboklab(46.15% -0.0227 -0.1061)
OKLCHoklch(46.15% 0.108 257.9)
XYZxyz(10.0054, 9.7209, 29.3603)
Luminance0.0972 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5894 #946B2F
analogous
#2F8A94 #2F5894 #392F94
triadic
#2F5894 #942F58 #58942F
tetradic
#2F5894 #942F8A #946B2F #2F9439
square
#2F5894 #942F8A #946B2F #2F9439
split-complementary
#2F5894 #94392F #8A942F
monochromatic
#112137 #203C66 #2F5894 #3E74C2 #6D95D1

Accessibility & contrast

On white

7.13
#2F5894 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#2F5894 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5894
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5894#FFFFFF#000000##FFFFFF
##2F58941.007.132.947.13
#FFFFFF7.131.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D5D96
Deuteranopia (green-blind)
#2E5493
Tritanopia (blue-blind)
#00666F
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2f5894;
/* rgb */ color: rgb(47, 88, 148);
/* oklch */ color: oklch(46.1% 0.108 257.9);
Tailwind
colors: {
  custom: {
    50: '#7386b4',
    500: '#2f5894',
    950: '#000000',
  },
}
SCSS
$custom: #2f5894;
$custom-light: #7386b4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5894",
  "rgb": {
    "r": 47,
    "g": 88,
    "b": 148
  },
  "hsl": {
    "h": 215.644,
    "s": 51.795,
    "l": 38.235
  },
  "oklch": {
    "l": 0.46149,
    "c": 0.10848,
    "h": 257.9
  },
  "luminance": 0.09722
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F5894

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

Preview Lab → · Contrast checker → · Palette generator →

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