#2F4581#2F4581

#2F4581 is a dark, moderate blue. Relative luminance 0.064; OKLCH L 40.5% C 0.104 H 266.6°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#2F4581
RGBrgb(47, 69, 129)
HSLhsl(224, 47%, 35%)
HSVhsv(224, 64%, 51%)
CMYKcmyk(63.6%, 46.5%, 0%, 49.4%)
CIE-LABlab(30.51, 11.69, -36.50)
CIE-LCHlch(30.51, 38.33, 287.76°)
OKLaboklab(40.5% -0.0061 -0.1042)
OKLCHoklch(40.5% 0.104 266.6)
XYZxyz(7.2615, 6.4449, 21.6259)
Luminance0.0645 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4581 #816B2F
analogous
#2F6E81 #2F4581 #422F81
triadic
#2F4581 #812F45 #45812F
tetradic
#2F4581 #812F6E #816B2F #2F8142
square
#2F4581 #812F6E #816B2F #2F8142
split-complementary
#2F4581 #81422F #6E812F
monochromatic
#0E1527 #1F2D54 #2F4581 #3F5DAE #647EC6

Accessibility & contrast

On white

9.17
#2F4581 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F4581
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4581#FFFFFF#000000##FFFFFF
##2F45811.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#294C83
Deuteranopia (green-blind)
#1C4480
Tritanopia (blue-blind)
#00535C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2f4581;
/* rgb */ color: rgb(47, 69, 129);
/* oklch */ color: oklch(40.5% 0.104 266.6);
Tailwind
colors: {
  custom: {
    50: '#7078a6',
    500: '#2f4581',
    950: '#000000',
  },
}
SCSS
$custom: #2f4581;
$custom-light: #7078a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4581",
  "rgb": {
    "r": 47,
    "g": 69,
    "b": 129
  },
  "hsl": {
    "h": 223.902,
    "s": 46.591,
    "l": 34.51
  },
  "oklch": {
    "l": 0.40504,
    "c": 0.10435,
    "h": 266.6
  },
  "luminance": 0.06446
}

Semantic roles & 50–950 ramp

primary
#2F4581
secondary
#AD985E
accent
#B352D6
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #2F4581

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

Preview Lab → · Contrast checker → · Palette generator →

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