#2F4E97#2F4E97

#2F4E97 is a dark, vivid blue. Relative luminance 0.083; OKLCH L 44.1% C 0.125 H 264.5°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#2F4E97
RGBrgb(47, 78, 151)
HSLhsl(222, 53%, 39%)
HSVhsv(222, 69%, 59%)
CMYKcmyk(68.9%, 48.3%, 0%, 40.8%)
CIE-LABlab(34.57, 13.90, -43.48)
CIE-LCHlch(34.57, 45.65, 287.72°)
OKLaboklab(44.08% -0.0119 -0.1245)
OKLCHoklch(44.08% 0.125 264.5)
XYZxyz(9.4806, 8.2866, 30.3720)
Luminance0.0829 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4E97 #97782F
analogous
#2F8297 #2F4E97 #442F97
triadic
#2F4E97 #972F4E #4E972F
tetradic
#2F4E97 #972F82 #97782F #2F9744
square
#2F4E97 #972F82 #97782F #2F9744
split-complementary
#2F4E97 #97442F #82972F
monochromatic
#121E3A #203668 #2F4E97 #4067C3 #6E8CD2

Accessibility & contrast

On white

7.90
#2F4E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#2F4E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4E97
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4E97#FFFFFF#000000##FFFFFF
##2F4E971.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28569A
Deuteranopia (green-blind)
#114D96
Tritanopia (blue-blind)
#005F6B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2f4e97;
/* rgb */ color: rgb(47, 78, 151);
/* oklch */ color: oklch(44.1% 0.125 264.5);
Tailwind
colors: {
  custom: {
    50: '#747fb6',
    500: '#2f4e97',
    950: '#000000',
  },
}
SCSS
$custom: #2f4e97;
$custom-light: #747fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4e97",
  "rgb": {
    "r": 47,
    "g": 78,
    "b": 151
  },
  "hsl": {
    "h": 222.115,
    "s": 52.525,
    "l": 38.824
  },
  "oklch": {
    "l": 0.44078,
    "c": 0.12512,
    "h": 264.5
  },
  "luminance": 0.08287
}

Semantic roles & 50–950 ramp

primary
#2F4E97
secondary
#B9A168
accent
#B14CDC
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2F4E97

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

Preview Lab → · Contrast checker → · Palette generator →

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