#2F3397#2F3397

#2F3397 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.6% C 0.160 H 274.3°. Best body text is #FFFFFF at 10.29:1 contrast (WCAG AA passes).

Color values

HEX#2F3397
RGBrgb(47, 51, 151)
HSLhsl(238, 53%, 39%)
HSVhsv(238, 69%, 59%)
CMYKcmyk(68.9%, 66.2%, 0%, 40.8%)
CIE-LABlab(27.31, 31.88, -55.26)
CIE-LCHlch(27.31, 63.80, 299.98°)
OKLaboklab(38.64% 0.0119 -0.1595)
OKLCHoklch(38.64% 0.16 274.3)
XYZxyz(7.9402, 5.2056, 29.8585)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3397 #97932F
analogous
#2F6797 #2F3397 #5F2F97
triadic
#2F3397 #972F33 #33972F
tetradic
#2F3397 #972F67 #97932F #2F975F
square
#2F3397 #972F67 #97932F #2F975F
split-complementary
#2F3397 #975F2F #67972F
monochromatic
#12133A #202368 #2F3397 #4045C3 #6E72D2

Accessibility & contrast

On white

10.29
#2F3397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#2F3397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3397
10.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3397#FFFFFF#000000##FFFFFF
##2F33971.0010.292.0410.29
#FFFFFF10.291.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459A
Deuteranopia (green-blind)
#003C95
Tritanopia (blue-blind)
#004D60
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2f3397;
/* rgb */ color: rgb(47, 51, 151);
/* oklch */ color: oklch(38.6% 0.160 274.3);
Tailwind
colors: {
  custom: {
    50: '#766bb7',
    500: '#2f3397',
    950: '#000000',
  },
}
SCSS
$custom: #2f3397;
$custom-light: #766bb7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3397",
  "rgb": {
    "r": 47,
    "g": 51,
    "b": 151
  },
  "hsl": {
    "h": 237.692,
    "s": 52.525,
    "l": 38.824
  },
  "oklch": {
    "l": 0.38642,
    "c": 0.15994,
    "h": 274.3
  },
  "luminance": 0.05206
}

Semantic roles & 50–950 ramp

primary
#2F3397
secondary
#B9B668
accent
#D64CDC
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #2F3397

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

Preview Lab → · Contrast checker → · Palette generator →

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