#2F4A87#2F4A87

#2F4A87 is a dark, moderate blue. Relative luminance 0.073; OKLCH L 42.1% C 0.107 H 264.3°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#2F4A87
RGBrgb(47, 74, 135)
HSLhsl(222, 48%, 36%)
HSVhsv(222, 65%, 53%)
CMYKcmyk(65.2%, 45.2%, 0%, 47.1%)
CIE-LABlab(32.37, 10.56, -37.24)
CIE-LCHlch(32.37, 38.71, 285.84°)
OKLaboklab(42.06% -0.0105 -0.1063)
OKLCHoklch(42.06% 0.107 264.3)
XYZxyz(7.9927, 7.2504, 23.8952)
Luminance0.0725 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4A87 #876C2F
analogous
#2F7687 #2F4A87 #402F87
triadic
#2F4A87 #872F4A #4A872F
tetradic
#2F4A87 #872F76 #876C2F #2F8740
square
#2F4A87 #872F76 #876C2F #2F8740
split-complementary
#2F4A87 #87402F #76872F
monochromatic
#0F182C #1F315A #2F4A87 #3F63B4 #6685CA

Accessibility & contrast

On white

8.57
#2F4A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#2F4A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4A87
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4A87#FFFFFF#000000##FFFFFF
##2F4A871.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D5089
Deuteranopia (green-blind)
#204886
Tritanopia (blue-blind)
#005862
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2f4a87;
/* rgb */ color: rgb(47, 74, 135);
/* oklch */ color: oklch(42.1% 0.107 264.3);
Tailwind
colors: {
  custom: {
    50: '#717caa',
    500: '#2f4a87',
    950: '#000000',
  },
}
SCSS
$custom: #2f4a87;
$custom-light: #717caa;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4a87",
  "rgb": {
    "r": 47,
    "g": 74,
    "b": 135
  },
  "hsl": {
    "h": 221.591,
    "s": 48.352,
    "l": 35.686
  },
  "oklch": {
    "l": 0.42056,
    "c": 0.10678,
    "h": 264.3
  },
  "luminance": 0.07251
}

Semantic roles & 50–950 ramp

primary
#2F4A87
secondary
#B19861
accent
#AE50D8
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2F4A87

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

Preview Lab → · Contrast checker → · Palette generator →

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