#2F3797#2F3797

#2F3797 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.4% C 0.155 H 273.2°. Best body text is #FFFFFF at 9.93:1 contrast (WCAG AA passes).

Color values

HEX#2F3797
RGBrgb(47, 55, 151)
HSLhsl(235, 53%, 39%)
HSVhsv(235, 69%, 59%)
CMYKcmyk(68.9%, 63.6%, 0%, 40.8%)
CIE-LABlab(28.30, 29.28, -53.64)
CIE-LCHlch(28.30, 61.11, 298.63°)
OKLaboklab(39.37% 0.0088 -0.1547)
OKLCHoklch(39.37% 0.155 273.2)
XYZxyz(8.1225, 5.5703, 29.9193)
Luminance0.0557 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3797 #978F2F
analogous
#2F6B97 #2F3797 #5B2F97
triadic
#2F3797 #972F37 #37972F
tetradic
#2F3797 #972F6B #978F2F #2F975B
square
#2F3797 #972F6B #978F2F #2F975B
split-complementary
#2F3797 #975B2F #6B972F
monochromatic
#12153A #202668 #2F3797 #404AC3 #6E76D2

Accessibility & contrast

On white

9.93
#2F3797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#2F3797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3797
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3797#FFFFFF#000000##FFFFFF
##2F37971.009.932.119.93
#FFFFFF9.931.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489A
Deuteranopia (green-blind)
#003E95
Tritanopia (blue-blind)
#004F61
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2f3797;
/* rgb */ color: rgb(47, 55, 151);
/* oklch */ color: oklch(39.4% 0.155 273.2);
Tailwind
colors: {
  custom: {
    50: '#756eb6',
    500: '#2f3797',
    950: '#000000',
  },
}
SCSS
$custom: #2f3797;
$custom-light: #756eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3797",
  "rgb": {
    "r": 47,
    "g": 55,
    "b": 151
  },
  "hsl": {
    "h": 235.385,
    "s": 52.525,
    "l": 38.824
  },
  "oklch": {
    "l": 0.39366,
    "c": 0.15499,
    "h": 273.2
  },
  "luminance": 0.05571
}

Semantic roles & 50–950 ramp

primary
#2F3797
secondary
#B9B368
accent
#D14CDC
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2F3797

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

Preview Lab → · Contrast checker → · Palette generator →

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