#2F4686#2F4686

#2F4686 is a dark, moderate blue. Relative luminance 0.067; OKLCH L 41.1% C 0.111 H 266.7°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#2F4686
RGBrgb(47, 70, 134)
HSLhsl(224, 48%, 35%)
HSVhsv(224, 65%, 53%)
CMYKcmyk(64.9%, 47.8%, 0%, 47.5%)
CIE-LABlab(31.13, 12.88, -38.61)
CIE-LCHlch(31.13, 40.71, 288.45°)
OKLaboklab(41.08% -0.0064 -0.1104)
OKLCHoklch(41.08% 0.111 266.7)
XYZxyz(7.6640, 6.7052, 23.4400)
Luminance0.0671 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4686 #866F2F
analogous
#2F7186 #2F4686 #432F86
triadic
#2F4686 #862F46 #46862F
tetradic
#2F4686 #862F71 #866F2F #2F8643
square
#2F4686 #862F71 #866F2F #2F8643
split-complementary
#2F4686 #86432F #71862F
monochromatic
#0F172B #1F2E59 #2F4686 #3F5EB3 #6680C9

Accessibility & contrast

On white

8.97
#2F4686 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#2F4686 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4686
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4686#FFFFFF#000000##FFFFFF
##2F46861.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#274D88
Deuteranopia (green-blind)
#174685
Tritanopia (blue-blind)
#00555F
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2f4686;
/* rgb */ color: rgb(47, 70, 134);
/* oklch */ color: oklch(41.1% 0.111 266.7);
Tailwind
colors: {
  custom: {
    50: '#7179aa',
    500: '#2f4686',
    950: '#000000',
  },
}
SCSS
$custom: #2f4686;
$custom-light: #7179aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4686",
  "rgb": {
    "r": 47,
    "g": 70,
    "b": 134
  },
  "hsl": {
    "h": 224.138,
    "s": 48.066,
    "l": 35.49
  },
  "oklch": {
    "l": 0.41082,
    "c": 0.11054,
    "h": 266.7
  },
  "luminance": 0.06706
}

Semantic roles & 50–950 ramp

primary
#2F4686
secondary
#B09B60
accent
#B450D8
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2F4686

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

Preview Lab → · Contrast checker → · Palette generator →

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