#2F4688#2F4688

#2F4688 is a dark, moderate blue. Relative luminance 0.068; OKLCH L 41.2% C 0.114 H 266.9°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#2F4688
RGBrgb(47, 70, 136)
HSLhsl(224, 49%, 36%)
HSVhsv(224, 65%, 53%)
CMYKcmyk(65.4%, 48.5%, 0%, 46.7%)
CIE-LABlab(31.26, 13.63, -39.64)
CIE-LCHlch(31.26, 41.92, 288.98°)
OKLaboklab(41.23% -0.0061 -0.1134)
OKLCHoklch(41.23% 0.114 266.9)
XYZxyz(7.8049, 6.7615, 24.1816)
Luminance0.0676 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4688 #88712F
analogous
#2F7288 #2F4688 #442F88
triadic
#2F4688 #882F46 #46882F
tetradic
#2F4688 #882F72 #88712F #2F8844
square
#2F4688 #882F72 #88712F #2F8844
split-complementary
#2F4688 #88442F #72882F
monochromatic
#10172D #1F2F5B #2F4688 #3F5DB5 #6781CA

Accessibility & contrast

On white

8.93
#2F4688 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#2F4688 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4688
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4688#FFFFFF#000000##FFFFFF
##2F46881.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#254E8A
Deuteranopia (green-blind)
#144687
Tritanopia (blue-blind)
#005560
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2f4688;
/* rgb */ color: rgb(47, 70, 136);
/* oklch */ color: oklch(41.2% 0.114 266.9);
Tailwind
colors: {
  custom: {
    50: '#7179ab',
    500: '#2f4688',
    950: '#000000',
  },
}
SCSS
$custom: #2f4688;
$custom-light: #7179ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4688",
  "rgb": {
    "r": 47,
    "g": 70,
    "b": 136
  },
  "hsl": {
    "h": 224.494,
    "s": 48.634,
    "l": 35.882
  },
  "oklch": {
    "l": 0.41225,
    "c": 0.11353,
    "h": 266.9
  },
  "luminance": 0.06762
}

Semantic roles & 50–950 ramp

primary
#2F4688
secondary
#B19D61
accent
#B550D8
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2F4688

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

Preview Lab → · Contrast checker → · Palette generator →

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