#2F4B87#2F4B87

#2F4B87 is a dark, moderate blue. Relative luminance 0.074; OKLCH L 42.3% C 0.105 H 263.7°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#2F4B87
RGBrgb(47, 75, 135)
HSLhsl(221, 48%, 36%)
HSVhsv(221, 65%, 53%)
CMYKcmyk(65.2%, 44.4%, 0%, 47.1%)
CIE-LABlab(32.67, 9.89, -36.76)
CIE-LCHlch(32.67, 38.07, 285.06°)
OKLaboklab(42.29% -0.0116 -0.1048)
OKLCHoklch(42.29% 0.105 263.7)
XYZxyz(8.0600, 7.3850, 23.9177)
Luminance0.0739 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4B87 #876B2F
analogous
#2F7787 #2F4B87 #3F2F87
triadic
#2F4B87 #872F4B #4B872F
tetradic
#2F4B87 #872F77 #876B2F #2F873F
square
#2F4B87 #872F77 #876B2F #2F873F
split-complementary
#2F4B87 #873F2F #77872F
monochromatic
#0F192C #1F325A #2F4B87 #3F64B4 #6686CA

Accessibility & contrast

On white

8.48
#2F4B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#2F4B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4B87
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4B87#FFFFFF#000000##FFFFFF
##2F4B871.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F5189
Deuteranopia (green-blind)
#224986
Tritanopia (blue-blind)
#005962
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2f4b87;
/* rgb */ color: rgb(47, 75, 135);
/* oklch */ color: oklch(42.3% 0.105 263.7);
Tailwind
colors: {
  custom: {
    50: '#717caa',
    500: '#2f4b87',
    950: '#000000',
  },
}
SCSS
$custom: #2f4b87;
$custom-light: #717caa;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4b87",
  "rgb": {
    "r": 47,
    "g": 75,
    "b": 135
  },
  "hsl": {
    "h": 220.909,
    "s": 48.352,
    "l": 35.686
  },
  "oklch": {
    "l": 0.42285,
    "c": 0.10549,
    "h": 263.7
  },
  "luminance": 0.07386
}

Semantic roles & 50–950 ramp

primary
#2F4B87
secondary
#B19761
accent
#AD50D8
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2F4B87

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

Preview Lab → · Contrast checker → · Palette generator →

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