#2F4D97#2F4D97

#2F4D97 is a dark, vivid blue. Relative luminance 0.081; OKLCH L 43.9% C 0.126 H 265.0°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#2F4D97
RGBrgb(47, 77, 151)
HSLhsl(223, 53%, 39%)
HSVhsv(223, 69%, 59%)
CMYKcmyk(68.9%, 49%, 0%, 40.8%)
CIE-LABlab(34.28, 14.57, -43.95)
CIE-LCHlch(34.28, 46.30, 288.34°)
OKLaboklab(43.86% -0.011 -0.1259)
OKLCHoklch(43.86% 0.126 265)
XYZxyz(9.4101, 8.1455, 30.3485)
Luminance0.0815 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4D97 #97792F
analogous
#2F8197 #2F4D97 #452F97
triadic
#2F4D97 #972F4D #4D972F
tetradic
#2F4D97 #972F81 #97792F #2F9745
square
#2F4D97 #972F81 #97792F #2F9745
split-complementary
#2F4D97 #97452F #81972F
monochromatic
#121D3A #203568 #2F4D97 #4066C3 #6E8BD2

Accessibility & contrast

On white

7.99
#2F4D97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#2F4D97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4D97
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4D97#FFFFFF#000000##FFFFFF
##2F4D971.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26569A
Deuteranopia (green-blind)
#0C4C95
Tritanopia (blue-blind)
#005E6A
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2f4d97;
/* rgb */ color: rgb(47, 77, 151);
/* oklch */ color: oklch(43.9% 0.126 265.0);
Tailwind
colors: {
  custom: {
    50: '#747eb6',
    500: '#2f4d97',
    950: '#000000',
  },
}
SCSS
$custom: #2f4d97;
$custom-light: #747eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4d97",
  "rgb": {
    "r": 47,
    "g": 77,
    "b": 151
  },
  "hsl": {
    "h": 222.692,
    "s": 52.525,
    "l": 38.824
  },
  "oklch": {
    "l": 0.43857,
    "c": 0.12641,
    "h": 265
  },
  "luminance": 0.08146
}

Semantic roles & 50–950 ramp

primary
#2F4D97
secondary
#B9A268
accent
#B24CDC
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #2F4D97

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

Preview Lab → · Contrast checker → · Palette generator →

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