#2F4777#2F4777

#2F4777 is a dark, moderate blue. Relative luminance 0.064; OKLCH L 40.3% C 0.087 H 263.0°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#2F4777
RGBrgb(47, 71, 119)
HSLhsl(220, 43%, 33%)
HSVhsv(220, 61%, 47%)
CMYKcmyk(60.5%, 40.3%, 0%, 53.3%)
CIE-LABlab(30.50, 6.66, -30.27)
CIE-LCHlch(30.50, 31.00, 282.41°)
OKLaboklab(40.3% -0.0106 -0.0859)
OKLCHoklch(40.3% 0.087 263)
XYZxyz(6.7542, 6.4422, 18.3367)
Luminance0.0644 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4777 #775F2F
analogous
#2F6B77 #2F4777 #3B2F77
triadic
#2F4777 #772F47 #47772F
tetradic
#2F4777 #772F6B #775F2F #2F773B
square
#2F4777 #772F6B #775F2F #2F773B
split-complementary
#2F4777 #773B2F #6B772F
monochromatic
#0C131F #1E2D4B #2F4777 #4061A3 #6080C0

Accessibility & contrast

On white

9.18
#2F4777 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F4777
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4777#FFFFFF#000000##FFFFFF
##2F47771.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#334B79
Deuteranopia (green-blind)
#294576
Tritanopia (blue-blind)
#005259
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2f4777;
/* rgb */ color: rgb(47, 71, 119);
/* oklch */ color: oklch(40.3% 0.087 263.0);
Tailwind
colors: {
  custom: {
    50: '#6e799e',
    500: '#2f4777',
    950: '#000000',
  },
}
SCSS
$custom: #2f4777;
$custom-light: #6e799e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4777",
  "rgb": {
    "r": 47,
    "g": 71,
    "b": 119
  },
  "hsl": {
    "h": 220,
    "s": 43.373,
    "l": 32.549
  },
  "oklch": {
    "l": 0.40302,
    "c": 0.08652,
    "h": 263
  },
  "luminance": 0.06443
}

Semantic roles & 50–950 ramp

primary
#2F4777
secondary
#A78E5B
accent
#A955D3
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#08090E
muted
#7B7B7E

Preview Lab

Preview with #2F4777

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

Preview Lab → · Contrast checker → · Palette generator →

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