#2F4785#2F4785

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

Color values

HEX#2F4785
RGBrgb(47, 71, 133)
HSLhsl(223, 48%, 35%)
HSVhsv(223, 65%, 52%)
CMYKcmyk(64.7%, 46.6%, 0%, 47.8%)
CIE-LABlab(31.36, 11.83, -37.63)
CIE-LCHlch(31.36, 39.44, 287.46°)
OKLaboklab(41.24% -0.0076 -0.1074)
OKLCHoklch(41.24% 0.108 265.9)
XYZxyz(7.6577, 6.8036, 23.0954)
Luminance0.0680 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4785 #856D2F
analogous
#2F7285 #2F4785 #422F85
triadic
#2F4785 #852F47 #47852F
tetradic
#2F4785 #852F72 #856D2F #2F8542
square
#2F4785 #852F72 #856D2F #2F8542
split-complementary
#2F4785 #85422F #72852F
monochromatic
#0F172B #1F2F58 #2F4785 #3F5FB2 #6681C9

Accessibility & contrast

On white

8.90
#2F4785 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#2F4785 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4785
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4785#FFFFFF#000000##FFFFFF
##2F47851.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#294E87
Deuteranopia (green-blind)
#1B4684
Tritanopia (blue-blind)
#00555F
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2f4785;
/* rgb */ color: rgb(47, 71, 133);
/* oklch */ color: oklch(41.2% 0.108 265.9);
Tailwind
colors: {
  custom: {
    50: '#7179a9',
    500: '#2f4785',
    950: '#000000',
  },
}
SCSS
$custom: #2f4785;
$custom-light: #7179a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4785",
  "rgb": {
    "r": 47,
    "g": 71,
    "b": 133
  },
  "hsl": {
    "h": 223.256,
    "s": 47.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.41236,
    "c": 0.10771,
    "h": 265.9
  },
  "luminance": 0.06804
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F4785

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

Preview Lab → · Contrast checker → · Palette generator →

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