#2F4E83#2F4E83

#2F4E83 is a dark, moderate blue. Relative luminance 0.077; OKLCH L 42.7% C 0.096 H 260.5°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#2F4E83
RGBrgb(47, 78, 131)
HSLhsl(218, 47%, 35%)
HSVhsv(218, 64%, 51%)
CMYKcmyk(64.1%, 40.5%, 0%, 48.6%)
CIE-LABlab(33.33, 6.42, -33.24)
CIE-LCHlch(33.33, 33.86, 280.92°)
OKLaboklab(42.72% -0.0158 -0.0945)
OKLCHoklch(42.72% 0.096 260.5)
XYZxyz(7.9920, 7.6911, 22.5317)
Luminance0.0769 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4E83 #83642F
analogous
#2F7883 #2F4E83 #3A2F83
triadic
#2F4E83 #832F4E #4E832F
tetradic
#2F4E83 #832F78 #83642F #2F833A
square
#2F4E83 #832F78 #83642F #2F833A
split-complementary
#2F4E83 #833A2F #78832F
monochromatic
#0F1829 #1F3356 #2F4E83 #3F69B0 #6589C8

Accessibility & contrast

On white

8.27
#2F4E83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#2F4E83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4E83
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4E83#FFFFFF#000000##FFFFFF
##2F4E831.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#375385
Deuteranopia (green-blind)
#2B4B82
Tritanopia (blue-blind)
#005A62
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2f4e83;
/* rgb */ color: rgb(47, 78, 131);
/* oklch */ color: oklch(42.7% 0.096 260.5);
Tailwind
colors: {
  custom: {
    50: '#707fa7',
    500: '#2f4e83',
    950: '#000000',
  },
}
SCSS
$custom: #2f4e83;
$custom-light: #707fa7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4e83",
  "rgb": {
    "r": 47,
    "g": 78,
    "b": 131
  },
  "hsl": {
    "h": 217.857,
    "s": 47.191,
    "l": 34.902
  },
  "oklch": {
    "l": 0.4272,
    "c": 0.0958,
    "h": 260.5
  },
  "luminance": 0.07692
}

Semantic roles & 50–950 ramp

primary
#2F4E83
secondary
#AF915F
accent
#A551D7
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A0F
muted
#7B7C7F

Preview Lab

Preview with #2F4E83

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

Preview Lab → · Contrast checker → · Palette generator →

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