#2F4082#2F4082

#2F4082 is a dark, moderate blue. Relative luminance 0.059; OKLCH L 39.5% C 0.113 H 269.8°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#2F4082
RGBrgb(47, 64, 130)
HSLhsl(228, 47%, 35%)
HSVhsv(228, 64%, 51%)
CMYKcmyk(63.8%, 50.8%, 0%, 49%)
CIE-LABlab(29.11, 15.46, -39.36)
CIE-LCHlch(29.11, 42.29, 291.45°)
OKLaboklab(39.46% -0.0005 -0.1126)
OKLCHoklch(39.46% 0.113 269.8)
XYZxyz(7.0336, 5.8822, 21.8795)
Luminance0.0588 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4082 #82712F
analogous
#2F6A82 #2F4082 #482F82
triadic
#2F4082 #822F40 #40822F
tetradic
#2F4082 #822F6A #82712F #2F8248
square
#2F4082 #822F6A #82712F #2F8248
split-complementary
#2F4082 #82482F #6A822F
monochromatic
#0E1428 #1F2A55 #2F4082 #3F56AF #6479C7

Accessibility & contrast

On white

9.65
#2F4082 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#2F4082 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4082
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4082#FFFFFF#000000##FFFFFF
##2F40821.009.652.189.65
#FFFFFF9.651.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4984
Deuteranopia (green-blind)
#0C4181
Tritanopia (blue-blind)
#004F5A
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2f4082;
/* rgb */ color: rgb(47, 64, 130);
/* oklch */ color: oklch(39.5% 0.113 269.8);
Tailwind
colors: {
  custom: {
    50: '#7074a7',
    500: '#2f4082',
    950: '#000000',
  },
}
SCSS
$custom: #2f4082;
$custom-light: #7074a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4082",
  "rgb": {
    "r": 47,
    "g": 64,
    "b": 130
  },
  "hsl": {
    "h": 227.711,
    "s": 46.893,
    "l": 34.706
  },
  "oklch": {
    "l": 0.39462,
    "c": 0.11264,
    "h": 269.8
  },
  "luminance": 0.05883
}

Semantic roles & 50–950 ramp

primary
#2F4082
secondary
#AE9E5F
accent
#BB51D7
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #2F4082

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

Preview Lab → · Contrast checker → · Palette generator →

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