#2F3494#2F3494

#2F3494 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.5% C 0.155 H 274.2°. Best body text is #FFFFFF at 10.30:1 contrast (WCAG AA passes).

Color values

HEX#2F3494
RGBrgb(47, 52, 148)
HSLhsl(237, 52%, 38%)
HSVhsv(237, 68%, 58%)
CMYKcmyk(68.2%, 64.9%, 0%, 42%)
CIE-LABlab(27.29, 30.16, -53.46)
CIE-LCHlch(27.29, 61.38, 299.43°)
OKLaboklab(38.54% 0.0114 -0.1542)
OKLCHoklch(38.54% 0.155 274.2)
XYZxyz(7.7438, 5.1977, 28.6064)
Luminance0.0520 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3494 #948F2F
analogous
#2F6694 #2F3494 #5C2F94
triadic
#2F3494 #942F34 #34942F
tetradic
#2F3494 #942F66 #948F2F #2F945C
square
#2F3494 #942F66 #948F2F #2F945C
split-complementary
#2F3494 #945C2F #66942F
monochromatic
#111337 #202466 #2F3494 #3E45C2 #6D72D1

Accessibility & contrast

On white

10.30
#2F3494 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F3494
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3494#FFFFFF#000000##FFFFFF
##2F34941.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004597
Deuteranopia (green-blind)
#003C92
Tritanopia (blue-blind)
#004D5F
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2f3494;
/* rgb */ color: rgb(47, 52, 148);
/* oklch */ color: oklch(38.5% 0.155 274.2);
Tailwind
colors: {
  custom: {
    50: '#756bb4',
    500: '#2f3494',
    950: '#000000',
  },
}
SCSS
$custom: #2f3494;
$custom-light: #756bb4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3494",
  "rgb": {
    "r": 47,
    "g": 52,
    "b": 148
  },
  "hsl": {
    "h": 237.03,
    "s": 51.795,
    "l": 38.235
  },
  "oklch": {
    "l": 0.38544,
    "c": 0.15463,
    "h": 274.2
  },
  "luminance": 0.05198
}

Semantic roles & 50–950 ramp

primary
#2F3494
secondary
#B8B467
accent
#D44DDB
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2F3494

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

Preview Lab → · Contrast checker → · Palette generator →

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