#2F4791#2F4791

#2F4791 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.1% C 0.126 H 267.3°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#2F4791
RGBrgb(47, 71, 145)
HSLhsl(225, 51%, 38%)
HSVhsv(225, 68%, 57%)
CMYKcmyk(67.6%, 51%, 0%, 43.1%)
CIE-LABlab(32.16, 16.33, -43.72)
CIE-LCHlch(32.16, 46.67, 290.48°)
OKLaboklab(42.1% -0.0059 -0.1254)
OKLCHoklch(42.1% 0.126 267.3)
XYZxyz(8.5346, 7.1543, 27.7137)
Luminance0.0716 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4791 #91792F
analogous
#2F7891 #2F4791 #482F91
triadic
#2F4791 #912F47 #47912F
tetradic
#2F4791 #912F78 #91792F #2F9148
square
#2F4791 #912F78 #91792F #2F9148
split-complementary
#2F4791 #91482F #78912F
monochromatic
#111A35 #203063 #2F4791 #3E5EBF #6B84CF

Accessibility & contrast

On white

8.64
#2F4791 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#2F4791 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4791
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4791#FFFFFF#000000##FFFFFF
##2F47911.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E5094
Deuteranopia (green-blind)
#00478F
Tritanopia (blue-blind)
#005865
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2f4791;
/* rgb */ color: rgb(47, 71, 145);
/* oklch */ color: oklch(42.1% 0.126 267.3);
Tailwind
colors: {
  custom: {
    50: '#7379b2',
    500: '#2f4791',
    950: '#000000',
  },
}
SCSS
$custom: #2f4791;
$custom-light: #7379b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4791",
  "rgb": {
    "r": 47,
    "g": 71,
    "b": 145
  },
  "hsl": {
    "h": 225.306,
    "s": 51.042,
    "l": 37.647
  },
  "oklch": {
    "l": 0.42104,
    "c": 0.1255,
    "h": 267.3
  },
  "luminance": 0.07155
}

Semantic roles & 50–950 ramp

primary
#2F4791
secondary
#B6A365
accent
#B84DDB
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #2F4791

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

Preview Lab → · Contrast checker → · Palette generator →

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