#2F4796#2F4796

#2F4796 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.5% C 0.133 H 267.7°. Best body text is #FFFFFF at 8.53:1 contrast (WCAG AA passes).

Color values

HEX#2F4796
RGBrgb(47, 71, 150)
HSLhsl(226, 52%, 39%)
HSVhsv(226, 69%, 59%)
CMYKcmyk(68.7%, 52.7%, 0%, 41.2%)
CIE-LABlab(32.51, 18.21, -46.20)
CIE-LCHlch(32.51, 49.66, 291.51°)
OKLaboklab(42.48% -0.0053 -0.1327)
OKLCHoklch(42.48% 0.133 267.7)
XYZxyz(8.9287, 7.3120, 29.7891)
Luminance0.0731 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4796 #967E2F
analogous
#2F7A96 #2F4796 #4A2F96
triadic
#2F4796 #962F47 #47962F
tetradic
#2F4796 #962F7A #967E2F #2F964A
square
#2F4796 #962F7A #967E2F #2F964A
split-complementary
#2F4796 #964A2F #7A962F
monochromatic
#121B39 #203167 #2F4796 #3F5EC3 #6E85D2

Accessibility & contrast

On white

8.53
#2F4796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#2F4796 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4796
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4796#FFFFFF#000000##FFFFFF
##2F47961.008.532.468.53
#FFFFFF8.531.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#165199
Deuteranopia (green-blind)
#004894
Tritanopia (blue-blind)
#005A67
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2f4796;
/* rgb */ color: rgb(47, 71, 150);
/* oklch */ color: oklch(42.5% 0.133 267.7);
Tailwind
colors: {
  custom: {
    50: '#7479b5',
    500: '#2f4796',
    950: '#000000',
  },
}
SCSS
$custom: #2f4796;
$custom-light: #7479b5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4796",
  "rgb": {
    "r": 47,
    "g": 71,
    "b": 150
  },
  "hsl": {
    "h": 226.019,
    "s": 52.284,
    "l": 38.627
  },
  "oklch": {
    "l": 0.42483,
    "c": 0.13278,
    "h": 267.7
  },
  "luminance": 0.07313
}

Semantic roles & 50–950 ramp

primary
#2F4796
secondary
#B9A668
accent
#BA4CDC
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #2F4796

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

Preview Lab → · Contrast checker → · Palette generator →

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