#2F3497#2F3497

#2F3497 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.8% C 0.159 H 274.0°. Best body text is #FFFFFF at 10.20:1 contrast (WCAG AA passes).

Color values

HEX#2F3497
RGBrgb(47, 52, 151)
HSLhsl(237, 53%, 39%)
HSVhsv(237, 69%, 59%)
CMYKcmyk(68.9%, 65.6%, 0%, 40.8%)
CIE-LABlab(27.56, 31.24, -54.86)
CIE-LCHlch(27.56, 63.13, 299.66°)
OKLaboklab(38.82% 0.0112 -0.1583)
OKLCHoklch(38.82% 0.159 274)
XYZxyz(7.9843, 5.2940, 29.8732)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3497 #97922F
analogous
#2F6897 #2F3497 #5E2F97
triadic
#2F3497 #972F34 #34972F
tetradic
#2F3497 #972F68 #97922F #2F975E
square
#2F3497 #972F68 #97922F #2F975E
split-complementary
#2F3497 #975E2F #68972F
monochromatic
#12143A #202468 #2F3497 #4046C3 #6E73D2

Accessibility & contrast

On white

10.20
#2F3497 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#2F3497 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3497
10.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3497#FFFFFF#000000##FFFFFF
##2F34971.0010.202.0610.20
#FFFFFF10.201.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f3497;
/* rgb */ color: rgb(47, 52, 151);
/* oklch */ color: oklch(38.8% 0.159 274.0);
Tailwind
colors: {
  custom: {
    50: '#766bb6',
    500: '#2f3497',
    950: '#000000',
  },
}
SCSS
$custom: #2f3497;
$custom-light: #766bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3497",
  "rgb": {
    "r": 47,
    "g": 52,
    "b": 151
  },
  "hsl": {
    "h": 237.115,
    "s": 52.525,
    "l": 38.824
  },
  "oklch": {
    "l": 0.3882,
    "c": 0.15872,
    "h": 274
  },
  "luminance": 0.05295
}

Semantic roles & 50–950 ramp

primary
#2F3497
secondary
#B9B568
accent
#D54CDC
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #2F3497

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

Preview Lab → · Contrast checker → · Palette generator →

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