#2F4794#2F4794

#2F4794 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.3% C 0.130 H 267.6°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#2F4794
RGBrgb(47, 71, 148)
HSLhsl(226, 52%, 38%)
HSVhsv(226, 68%, 58%)
CMYKcmyk(68.2%, 52%, 0%, 42%)
CIE-LABlab(32.37, 17.46, -45.21)
CIE-LCHlch(32.37, 48.47, 291.11°)
OKLaboklab(42.33% -0.0055 -0.1298)
OKLCHoklch(42.33% 0.13 267.6)
XYZxyz(8.7690, 7.2481, 28.9481)
Luminance0.0725 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4794 #947C2F
analogous
#2F7994 #2F4794 #4A2F94
triadic
#2F4794 #942F47 #47942F
tetradic
#2F4794 #942F79 #947C2F #2F944A
square
#2F4794 #942F79 #947C2F #2F944A
split-complementary
#2F4794 #944A2F #79942F
monochromatic
#111A37 #203166 #2F4794 #3E5EC2 #6D85D1

Accessibility & contrast

On white

8.57
#2F4794 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#2F4794 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4794
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4794#FFFFFF#000000##FFFFFF
##2F47941.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#195197
Deuteranopia (green-blind)
#004892
Tritanopia (blue-blind)
#005966
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2f4794;
/* rgb */ color: rgb(47, 71, 148);
/* oklch */ color: oklch(42.3% 0.130 267.6);
Tailwind
colors: {
  custom: {
    50: '#7479b4',
    500: '#2f4794',
    950: '#000000',
  },
}
SCSS
$custom: #2f4794;
$custom-light: #7479b4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4794",
  "rgb": {
    "r": 47,
    "g": 71,
    "b": 148
  },
  "hsl": {
    "h": 225.743,
    "s": 51.795,
    "l": 38.235
  },
  "oklch": {
    "l": 0.4233,
    "c": 0.12988,
    "h": 267.6
  },
  "luminance": 0.07249
}

Semantic roles & 50–950 ramp

primary
#2F4794
secondary
#B8A567
accent
#B94DDB
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #2F4794

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

Preview Lab → · Contrast checker → · Palette generator →

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