#2F4D8D#2F4D8D

#2F4D8D is a dark, moderate blue. Relative luminance 0.078; OKLCH L 43.2% C 0.112 H 263.5°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#2F4D8D
RGBrgb(47, 77, 141)
HSLhsl(221, 50%, 37%)
HSVhsv(221, 67%, 55%)
CMYKcmyk(66.7%, 45.4%, 0%, 44.7%)
CIE-LABlab(33.64, 10.80, -38.90)
CIE-LCHlch(33.64, 40.37, 285.52°)
OKLaboklab(43.15% -0.0126 -0.1111)
OKLCHoklch(43.15% 0.112 263.5)
XYZxyz(8.6322, 7.8344, 26.2514)
Luminance0.0784 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4D8D #8D6F2F
analogous
#2F7C8D #2F4D8D #402F8D
triadic
#2F4D8D #8D2F4D #4D8D2F
tetradic
#2F4D8D #8D2F7C #8D6F2F #2F8D40
square
#2F4D8D #8D2F7C #8D6F2F #2F8D40
split-complementary
#2F4D8D #8D402F #7C8D2F
monochromatic
#101B31 #20345F #2F4D8D #3E66BB #6989CD

Accessibility & contrast

On white

8.18
#2F4D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#2F4D8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4D8D
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4D8D#FFFFFF#000000##FFFFFF
##2F4D8D1.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F548F
Deuteranopia (green-blind)
#1F4B8C
Tritanopia (blue-blind)
#005C66
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2f4d8d;
/* rgb */ color: rgb(47, 77, 141);
/* oklch */ color: oklch(43.2% 0.112 263.5);
Tailwind
colors: {
  custom: {
    50: '#727eaf',
    500: '#2f4d8d',
    950: '#000000',
  },
}
SCSS
$custom: #2f4d8d;
$custom-light: #727eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4d8d",
  "rgb": {
    "r": 47,
    "g": 77,
    "b": 141
  },
  "hsl": {
    "h": 220.851,
    "s": 50,
    "l": 36.863
  },
  "oklch": {
    "l": 0.43151,
    "c": 0.1118,
    "h": 263.5
  },
  "luminance": 0.07835
}

Semantic roles & 50–950 ramp

primary
#2F4D8D
secondary
#B49A64
accent
#AD4EDA
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2F4D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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