#2F4778#2F4778

#2F4778 is a dark, moderate blue. Relative luminance 0.065; OKLCH L 40.4% C 0.088 H 263.3°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#2F4778
RGBrgb(47, 71, 120)
HSLhsl(220, 44%, 33%)
HSVhsv(220, 61%, 47%)
CMYKcmyk(60.8%, 40.8%, 0%, 52.9%)
CIE-LABlab(30.56, 7.03, -30.81)
CIE-LCHlch(30.56, 31.60, 282.85°)
OKLaboklab(40.37% -0.0103 -0.0874)
OKLCHoklch(40.37% 0.088 263.3)
XYZxyz(6.8145, 6.4663, 18.6547)
Luminance0.0647 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4778 #78602F
analogous
#2F6B78 #2F4778 #3B2F78
triadic
#2F4778 #782F47 #47782F
tetradic
#2F4778 #782F6B #78602F #2F783B
square
#2F4778 #782F6B #78602F #2F783B
split-complementary
#2F4778 #783B2F #6B782F
monochromatic
#0D1320 #1E2D4C #2F4778 #4061A4 #6080C1

Accessibility & contrast

On white

9.16
#2F4778 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#2F4778 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4778
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4778#FFFFFF#000000##FFFFFF
##2F47781.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#324C7A
Deuteranopia (green-blind)
#294577
Tritanopia (blue-blind)
#005259
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2f4778;
/* rgb */ color: rgb(47, 71, 120);
/* oklch */ color: oklch(40.4% 0.088 263.3);
Tailwind
colors: {
  custom: {
    50: '#6e799f',
    500: '#2f4778',
    950: '#000000',
  },
}
SCSS
$custom: #2f4778;
$custom-light: #6e799f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4778",
  "rgb": {
    "r": 47,
    "g": 71,
    "b": 120
  },
  "hsl": {
    "h": 220.274,
    "s": 43.713,
    "l": 32.745
  },
  "oklch": {
    "l": 0.40365,
    "c": 0.08804,
    "h": 263.3
  },
  "luminance": 0.06467
}

Semantic roles & 50–950 ramp

primary
#2F4778
secondary
#A88F5B
accent
#AA54D3
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#08090E
muted
#7B7B7E

Preview Lab

Preview with #2F4778

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

Preview Lab → · Contrast checker → · Palette generator →

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