#2F4587#2F4587

#2F4587 is a dark, moderate blue. Relative luminance 0.066; OKLCH L 40.9% C 0.113 H 267.4°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#2F4587
RGBrgb(47, 69, 135)
HSLhsl(225, 48%, 36%)
HSVhsv(225, 65%, 53%)
CMYKcmyk(65.2%, 48.9%, 0%, 47.1%)
CIE-LABlab(30.90, 13.93, -39.59)
CIE-LCHlch(30.90, 41.97, 289.38°)
OKLaboklab(40.93% -0.0052 -0.1132)
OKLCHoklch(40.93% 0.113 267.4)
XYZxyz(7.6721, 6.6092, 23.7884)
Luminance0.0661 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4587 #87712F
analogous
#2F7187 #2F4587 #452F87
triadic
#2F4587 #872F45 #45872F
tetradic
#2F4587 #872F71 #87712F #2F8745
square
#2F4587 #872F71 #87712F #2F8745
split-complementary
#2F4587 #87452F #71872F
monochromatic
#0F172C #1F2E5A #2F4587 #3F5CB4 #667FCA

Accessibility & contrast

On white

9.04
#2F4587 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#2F4587 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4587
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4587#FFFFFF#000000##FFFFFF
##2F45871.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#244D89
Deuteranopia (green-blind)
#134586
Tritanopia (blue-blind)
#00545F
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2f4587;
/* rgb */ color: rgb(47, 69, 135);
/* oklch */ color: oklch(40.9% 0.113 267.4);
Tailwind
colors: {
  custom: {
    50: '#7178aa',
    500: '#2f4587',
    950: '#000000',
  },
}
SCSS
$custom: #2f4587;
$custom-light: #7178aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4587",
  "rgb": {
    "r": 47,
    "g": 69,
    "b": 135
  },
  "hsl": {
    "h": 225,
    "s": 48.352,
    "l": 35.686
  },
  "oklch": {
    "l": 0.4093,
    "c": 0.11337,
    "h": 267.4
  },
  "luminance": 0.0661
}

Semantic roles & 50–950 ramp

primary
#2F4587
secondary
#B19D61
accent
#B650D8
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2F4587

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

Preview Lab → · Contrast checker → · Palette generator →

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