#2F3197#2F3197

#2F3197 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.3% C 0.162 H 274.7°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#2F3197
RGBrgb(47, 49, 151)
HSLhsl(239, 53%, 39%)
HSVhsv(239, 69%, 59%)
CMYKcmyk(68.9%, 67.5%, 0%, 40.8%)
CIE-LABlab(26.83, 33.16, -56.05)
CIE-LCHlch(26.83, 65.12, 300.61°)
OKLaboklab(38.29% 0.0134 -0.1618)
OKLCHoklch(38.29% 0.162 274.7)
XYZxyz(7.8547, 5.0346, 29.8300)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3197 #97952F
analogous
#2F6597 #2F3197 #612F97
triadic
#2F3197 #972F31 #31972F
tetradic
#2F3197 #972F65 #97952F #2F9761
square
#2F3197 #972F65 #97952F #2F9761
split-complementary
#2F3197 #97612F #65972F
monochromatic
#12133A #202268 #2F3197 #4042C3 #6E70D2

Accessibility & contrast

On white

10.46
#2F3197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#2F3197 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3197
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3197#FFFFFF#000000##FFFFFF
##2F31971.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449A
Deuteranopia (green-blind)
#003B95
Tritanopia (blue-blind)
#004C5F
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2f3197;
/* rgb */ color: rgb(47, 49, 151);
/* oklch */ color: oklch(38.3% 0.162 274.7);
Tailwind
colors: {
  custom: {
    50: '#7669b7',
    500: '#2f3197',
    950: '#000000',
  },
}
SCSS
$custom: #2f3197;
$custom-light: #7669b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3197",
  "rgb": {
    "r": 47,
    "g": 49,
    "b": 151
  },
  "hsl": {
    "h": 238.846,
    "s": 52.525,
    "l": 38.824
  },
  "oklch": {
    "l": 0.38293,
    "c": 0.16237,
    "h": 274.7
  },
  "luminance": 0.05035
}

Semantic roles & 50–950 ramp

primary
#2F3197
secondary
#B9B868
accent
#D94CDC
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #2F3197

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

Preview Lab → · Contrast checker → · Palette generator →

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