#2F4F91#2F4F91

#2F4F91 is a dark, moderate blue. Relative luminance 0.082; OKLCH L 43.9% C 0.115 H 263.0°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#2F4F91
RGBrgb(47, 79, 145)
HSLhsl(220, 51%, 38%)
HSVhsv(220, 68%, 57%)
CMYKcmyk(67.6%, 45.5%, 0%, 43.1%)
CIE-LABlab(34.48, 10.97, -39.99)
CIE-LCHlch(34.48, 41.47, 285.34°)
OKLaboklab(43.88% -0.014 -0.1143)
OKLCHoklch(43.88% 0.115 263)
XYZxyz(9.0773, 8.2398, 27.8946)
Luminance0.0824 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4F91 #91712F
analogous
#2F8091 #2F4F91 #402F91
triadic
#2F4F91 #912F4F #4F912F
tetradic
#2F4F91 #912F80 #91712F #2F9140
square
#2F4F91 #912F80 #91712F #2F9140
split-complementary
#2F4F91 #91402F #80912F
monochromatic
#111D35 #203663 #2F4F91 #3E68BF #6B8CCF

Accessibility & contrast

On white

7.93
#2F4F91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#2F4F91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4F91
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4F91#FFFFFF#000000##FFFFFF
##2F4F911.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F5694
Deuteranopia (green-blind)
#1E4D90
Tritanopia (blue-blind)
#005E69
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2f4f91;
/* rgb */ color: rgb(47, 79, 145);
/* oklch */ color: oklch(43.9% 0.115 263.0);
Tailwind
colors: {
  custom: {
    50: '#737fb2',
    500: '#2f4f91',
    950: '#000000',
  },
}
SCSS
$custom: #2f4f91;
$custom-light: #737fb2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4f91",
  "rgb": {
    "r": 47,
    "g": 79,
    "b": 145
  },
  "hsl": {
    "h": 220.408,
    "s": 51.042,
    "l": 37.647
  },
  "oklch": {
    "l": 0.4388,
    "c": 0.11513,
    "h": 263
  },
  "luminance": 0.08241
}

Semantic roles & 50–950 ramp

primary
#2F4F91
secondary
#B69C65
accent
#AC4DDB
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2F4F91

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

Preview Lab → · Contrast checker → · Palette generator →

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