#2F4596#2F4596

#2F4596 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.1% C 0.135 H 268.5°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#2F4596
RGBrgb(47, 69, 150)
HSLhsl(227, 52%, 39%)
HSVhsv(227, 69%, 59%)
CMYKcmyk(68.7%, 54%, 0%, 41.2%)
CIE-LABlab(31.95, 19.56, -47.11)
CIE-LCHlch(31.95, 51.01, 292.55°)
OKLaboklab(42.06% -0.0035 -0.1354)
OKLCHoklch(42.06% 0.135 268.5)
XYZxyz(8.8035, 7.0618, 29.7474)
Luminance0.0706 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4596 #96802F
analogous
#2F7896 #2F4596 #4C2F96
triadic
#2F4596 #962F45 #45962F
tetradic
#2F4596 #962F78 #96802F #2F964C
square
#2F4596 #962F78 #96802F #2F964C
split-complementary
#2F4596 #964C2F #78962F
monochromatic
#121A39 #203067 #2F4596 #3F5BC3 #6E83D2

Accessibility & contrast

On white

8.70
#2F4596 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#2F4596 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4596
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4596#FFFFFF#000000##FFFFFF
##2F45961.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E5099
Deuteranopia (green-blind)
#004794
Tritanopia (blue-blind)
#005866
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2f4596;
/* rgb */ color: rgb(47, 69, 150);
/* oklch */ color: oklch(42.1% 0.135 268.5);
Tailwind
colors: {
  custom: {
    50: '#7478b5',
    500: '#2f4596',
    950: '#000000',
  },
}
SCSS
$custom: #2f4596;
$custom-light: #7478b5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4596",
  "rgb": {
    "r": 47,
    "g": 69,
    "b": 150
  },
  "hsl": {
    "h": 227.184,
    "s": 52.284,
    "l": 38.627
  },
  "oklch": {
    "l": 0.4206,
    "c": 0.1354,
    "h": 268.5
  },
  "luminance": 0.07063
}

Semantic roles & 50–950 ramp

primary
#2F4596
secondary
#B9A868
accent
#BD4CDC
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2F4596

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

Preview Lab → · Contrast checker → · Palette generator →

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