#2F4282#2F4282

#2F4282 is a dark, moderate blue. Relative luminance 0.061; OKLCH L 39.9% C 0.110 H 268.6°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#2F4282
RGBrgb(47, 66, 130)
HSLhsl(226, 47%, 35%)
HSVhsv(226, 64%, 51%)
CMYKcmyk(63.8%, 49.2%, 0%, 49%)
CIE-LABlab(29.69, 14.10, -38.43)
CIE-LCHlch(29.69, 40.94, 290.15°)
OKLaboklab(39.9% -0.0027 -0.1099)
OKLCHoklch(39.9% 0.11 268.6)
XYZxyz(7.1484, 6.1119, 21.9178)
Luminance0.0611 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4282 #826F2F
analogous
#2F6C82 #2F4282 #462F82
triadic
#2F4282 #822F42 #42822F
tetradic
#2F4282 #822F6C #826F2F #2F8246
square
#2F4282 #822F6C #826F2F #2F8246
split-complementary
#2F4282 #82462F #6C822F
monochromatic
#0E1428 #1F2B55 #2F4282 #3F59AF #647BC7

Accessibility & contrast

On white

9.45
#2F4282 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#2F4282 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4282
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4282#FFFFFF#000000##FFFFFF
##2F42821.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224A84
Deuteranopia (green-blind)
#134281
Tritanopia (blue-blind)
#00515B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2f4282;
/* rgb */ color: rgb(47, 66, 130);
/* oklch */ color: oklch(39.9% 0.110 268.6);
Tailwind
colors: {
  custom: {
    50: '#7076a7',
    500: '#2f4282',
    950: '#000000',
  },
}
SCSS
$custom: #2f4282;
$custom-light: #7076a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4282",
  "rgb": {
    "r": 47,
    "g": 66,
    "b": 130
  },
  "hsl": {
    "h": 226.265,
    "s": 46.893,
    "l": 34.706
  },
  "oklch": {
    "l": 0.39902,
    "c": 0.10991,
    "h": 268.6
  },
  "luminance": 0.06112
}

Semantic roles & 50–950 ramp

primary
#2F4282
secondary
#AE9C5F
accent
#B851D7
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #2F4282

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

Preview Lab → · Contrast checker → · Palette generator →

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