#2F5284#2F5284

#2F5284 is a dark, moderate blue. Relative luminance 0.083; OKLCH L 43.7% C 0.093 H 257.4°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#2F5284
RGBrgb(47, 82, 132)
HSLhsl(215, 47%, 35%)
HSVhsv(215, 64%, 52%)
CMYKcmyk(64.4%, 37.9%, 0%, 48.2%)
CIE-LABlab(34.61, 4.16, -31.83)
CIE-LCHlch(34.61, 32.11, 277.44°)
OKLaboklab(43.73% -0.0201 -0.0903)
OKLCHoklch(43.73% 0.093 257.4)
XYZxyz(8.3530, 8.3041, 22.9880)
Luminance0.0830 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5284 #84612F
analogous
#2F7D84 #2F5284 #362F84
triadic
#2F5284 #842F52 #52842F
tetradic
#2F5284 #842F7D #84612F #2F8436
square
#2F5284 #842F7D #84612F #2F8436
split-complementary
#2F5284 #84362F #7D842F
monochromatic
#0F1A2A #1F3657 #2F5284 #3F6EB1 #658EC8

Accessibility & contrast

On white

7.89
#2F5284 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#2F5284 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5284
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5284#FFFFFF#000000##FFFFFF
##2F52841.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C5686
Deuteranopia (green-blind)
#314E83
Tritanopia (blue-blind)
#005D64
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2f5284;
/* rgb */ color: rgb(47, 82, 132);
/* oklch */ color: oklch(43.7% 0.093 257.4);
Tailwind
colors: {
  custom: {
    50: '#7082a8',
    500: '#2f5284',
    950: '#000000',
  },
}
SCSS
$custom: #2f5284;
$custom-light: #7082a8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5284",
  "rgb": {
    "r": 47,
    "g": 82,
    "b": 132
  },
  "hsl": {
    "h": 215.294,
    "s": 47.486,
    "l": 35.098
  },
  "oklch": {
    "l": 0.43731,
    "c": 0.09252,
    "h": 257.4
  },
  "luminance": 0.08305
}

Semantic roles & 50–950 ramp

primary
#2F5284
secondary
#AF8E60
accent
#A051D7
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A0F
muted
#7B7C7F

Preview Lab

Preview with #2F5284

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

Preview Lab → · Contrast checker → · Palette generator →

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