#2F4781#2F4781

#2F4781 is a dark, moderate blue. Relative luminance 0.067; OKLCH L 41.0% C 0.102 H 265.3°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#2F4781
RGBrgb(47, 71, 129)
HSLhsl(222, 47%, 35%)
HSVhsv(222, 64%, 51%)
CMYKcmyk(63.6%, 45%, 0%, 49.4%)
CIE-LABlab(31.10, 10.34, -35.55)
CIE-LCHlch(31.10, 37.03, 286.22°)
OKLaboklab(40.96% -0.0084 -0.1013)
OKLCHoklch(40.96% 0.102 265.3)
XYZxyz(7.3866, 6.6952, 21.6677)
Luminance0.0670 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4781 #81692F
analogous
#2F7081 #2F4781 #402F81
triadic
#2F4781 #812F47 #47812F
tetradic
#2F4781 #812F70 #81692F #2F8140
square
#2F4781 #812F70 #81692F #2F8140
split-complementary
#2F4781 #81402F #70812F
monochromatic
#0E1627 #1F2E54 #2F4781 #3F60AE #6481C6

Accessibility & contrast

On white

8.98
#2F4781 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#2F4781 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4781
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4781#FFFFFF#000000##FFFFFF
##2F47811.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C4D83
Deuteranopia (green-blind)
#204680
Tritanopia (blue-blind)
#00545D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2f4781;
/* rgb */ color: rgb(47, 71, 129);
/* oklch */ color: oklch(41.0% 0.102 265.3);
Tailwind
colors: {
  custom: {
    50: '#7079a6',
    500: '#2f4781',
    950: '#000000',
  },
}
SCSS
$custom: #2f4781;
$custom-light: #7079a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4781",
  "rgb": {
    "r": 47,
    "g": 71,
    "b": 129
  },
  "hsl": {
    "h": 222.439,
    "s": 46.591,
    "l": 34.51
  },
  "oklch": {
    "l": 0.4096,
    "c": 0.1017,
    "h": 265.3
  },
  "luminance": 0.06696
}

Semantic roles & 50–950 ramp

primary
#2F4781
secondary
#AD965E
accent
#AF52D6
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08090F
muted
#7B7B7F

Preview Lab

Preview with #2F4781

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

Preview Lab → · Contrast checker → · Palette generator →

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