#2F4786#2F4786

#2F4786 is a dark, moderate blue. Relative luminance 0.068; OKLCH L 41.3% C 0.109 H 266.1°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#2F4786
RGBrgb(47, 71, 134)
HSLhsl(223, 48%, 35%)
HSVhsv(223, 65%, 53%)
CMYKcmyk(64.9%, 47%, 0%, 47.5%)
CIE-LABlab(31.42, 12.21, -38.14)
CIE-LCHlch(31.42, 40.05, 287.74°)
OKLaboklab(41.31% -0.0075 -0.109)
OKLCHoklch(41.31% 0.109 266.1)
XYZxyz(7.7271, 6.8314, 23.4610)
Luminance0.0683 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4786 #866E2F
analogous
#2F7286 #2F4786 #422F86
triadic
#2F4786 #862F47 #47862F
tetradic
#2F4786 #862F72 #866E2F #2F8642
square
#2F4786 #862F72 #866E2F #2F8642
split-complementary
#2F4786 #86422F #72862F
monochromatic
#0F172B #1F2F59 #2F4786 #3F5FB3 #6681C9

Accessibility & contrast

On white

8.87
#2F4786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#2F4786 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4786
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4786#FFFFFF#000000##FFFFFF
##2F47861.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#294E88
Deuteranopia (green-blind)
#1A4685
Tritanopia (blue-blind)
#005560
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2f4786;
/* rgb */ color: rgb(47, 71, 134);
/* oklch */ color: oklch(41.3% 0.109 266.1);
Tailwind
colors: {
  custom: {
    50: '#7179aa',
    500: '#2f4786',
    950: '#000000',
  },
}
SCSS
$custom: #2f4786;
$custom-light: #7179aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4786",
  "rgb": {
    "r": 47,
    "g": 71,
    "b": 134
  },
  "hsl": {
    "h": 223.448,
    "s": 48.066,
    "l": 35.49
  },
  "oklch": {
    "l": 0.41306,
    "c": 0.10922,
    "h": 266.1
  },
  "luminance": 0.06832
}

Semantic roles & 50–950 ramp

primary
#2F4786
secondary
#B09A60
accent
#B250D8
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2F4786

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

Preview Lab → · Contrast checker → · Palette generator →

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