#2F4084#2F4084

#2F4084 is a dark, moderate blue. Relative luminance 0.059; OKLCH L 39.6% C 0.116 H 269.9°. Best body text is #FFFFFF at 9.60:1 contrast (WCAG AA passes).

Color values

HEX#2F4084
RGBrgb(47, 64, 132)
HSLhsl(228, 47%, 35%)
HSVhsv(228, 64%, 52%)
CMYKcmyk(64.4%, 51.5%, 0%, 48.2%)
CIE-LABlab(29.25, 16.21, -40.38)
CIE-LCHlch(29.25, 43.52, 291.87°)
OKLaboklab(39.61% -0.0002 -0.1156)
OKLCHoklch(39.61% 0.116 269.9)
XYZxyz(7.1691, 5.9365, 22.5934)
Luminance0.0594 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4084 #84732F
analogous
#2F6A84 #2F4084 #482F84
triadic
#2F4084 #842F40 #40842F
tetradic
#2F4084 #842F6A #84732F #2F8448
square
#2F4084 #842F6A #84732F #2F8448
split-complementary
#2F4084 #84482F #6A842F
monochromatic
#0F142A #1F2A57 #2F4084 #3F56B1 #6579C8

Accessibility & contrast

On white

9.60
#2F4084 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#2F4084 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4084
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4084#FFFFFF#000000##FFFFFF
##2F40841.009.602.199.60
#FFFFFF9.601.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4986
Deuteranopia (green-blind)
#064183
Tritanopia (blue-blind)
#00505B
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2f4084;
/* rgb */ color: rgb(47, 64, 132);
/* oklch */ color: oklch(39.6% 0.116 269.9);
Tailwind
colors: {
  custom: {
    50: '#7174a8',
    500: '#2f4084',
    950: '#000000',
  },
}
SCSS
$custom: #2f4084;
$custom-light: #7174a8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4084",
  "rgb": {
    "r": 47,
    "g": 64,
    "b": 132
  },
  "hsl": {
    "h": 228,
    "s": 47.486,
    "l": 35.098
  },
  "oklch": {
    "l": 0.39611,
    "c": 0.11565,
    "h": 269.9
  },
  "luminance": 0.05937
}

Semantic roles & 50–950 ramp

primary
#2F4084
secondary
#AF9F60
accent
#BC51D7
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2F4084

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

Preview Lab → · Contrast checker → · Palette generator →

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