#2F4783#2F4783

#2F4783 is a dark, moderate blue. Relative luminance 0.068; OKLCH L 41.1% C 0.105 H 265.6°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#2F4783
RGBrgb(47, 71, 131)
HSLhsl(223, 47%, 35%)
HSVhsv(223, 64%, 51%)
CMYKcmyk(64.1%, 45.8%, 0%, 48.6%)
CIE-LABlab(31.23, 11.09, -36.59)
CIE-LCHlch(31.23, 38.24, 286.86°)
OKLaboklab(41.1% -0.008 -0.1044)
OKLCHoklch(41.1% 0.105 265.6)
XYZxyz(7.5209, 6.7488, 22.3746)
Luminance0.0675 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4783 #836B2F
analogous
#2F7183 #2F4783 #412F83
triadic
#2F4783 #832F47 #47832F
tetradic
#2F4783 #832F71 #836B2F #2F8341
square
#2F4783 #832F71 #836B2F #2F8341
split-complementary
#2F4783 #83412F #71832F
monochromatic
#0F1629 #1F2F56 #2F4783 #3F5FB0 #6581C8

Accessibility & contrast

On white

8.94
#2F4783 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F4783
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4783#FFFFFF#000000##FFFFFF
##2F47831.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B4E85
Deuteranopia (green-blind)
#1E4682
Tritanopia (blue-blind)
#00555E
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2f4783;
/* rgb */ color: rgb(47, 71, 131);
/* oklch */ color: oklch(41.1% 0.105 265.6);
Tailwind
colors: {
  custom: {
    50: '#7079a7',
    500: '#2f4783',
    950: '#000000',
  },
}
SCSS
$custom: #2f4783;
$custom-light: #7079a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4783",
  "rgb": {
    "r": 47,
    "g": 71,
    "b": 131
  },
  "hsl": {
    "h": 222.857,
    "s": 47.191,
    "l": 34.902
  },
  "oklch": {
    "l": 0.41098,
    "c": 0.10472,
    "h": 265.6
  },
  "luminance": 0.0675
}

Semantic roles & 50–950 ramp

primary
#2F4783
secondary
#AF985F
accent
#B151D7
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08090F
muted
#7B7B7F

Preview Lab

Preview with #2F4783

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

Preview Lab → · Contrast checker → · Palette generator →

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