#2F3394#2F3394

#2F3394 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.4% C 0.156 H 274.5°. Best body text is #FFFFFF at 10.39:1 contrast (WCAG AA passes).

Color values

HEX#2F3394
RGBrgb(47, 51, 148)
HSLhsl(238, 52%, 38%)
HSVhsv(238, 68%, 58%)
CMYKcmyk(68.2%, 65.5%, 0%, 42%)
CIE-LABlab(27.04, 30.81, -53.86)
CIE-LCHlch(27.04, 62.05, 299.77°)
OKLaboklab(38.36% 0.0122 -0.1554)
OKLCHoklch(38.36% 0.156 274.5)
XYZxyz(7.6996, 5.1094, 28.5917)
Luminance0.0511 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3394 #94902F
analogous
#2F6594 #2F3394 #5D2F94
triadic
#2F3394 #942F33 #33942F
tetradic
#2F3394 #942F65 #94902F #2F945D
square
#2F3394 #942F65 #94902F #2F945D
split-complementary
#2F3394 #945D2F #65942F
monochromatic
#111337 #202366 #2F3394 #3E44C2 #6D71D1

Accessibility & contrast

On white

10.39
#2F3394 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#2F3394 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3394
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3394#FFFFFF#000000##FFFFFF
##2F33941.0010.392.0210.39
#FFFFFF10.391.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.391.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f3394;
/* rgb */ color: rgb(47, 51, 148);
/* oklch */ color: oklch(38.4% 0.156 274.5);
Tailwind
colors: {
  custom: {
    50: '#756bb4',
    500: '#2f3394',
    950: '#000000',
  },
}
SCSS
$custom: #2f3394;
$custom-light: #756bb4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3394",
  "rgb": {
    "r": 47,
    "g": 51,
    "b": 148
  },
  "hsl": {
    "h": 237.624,
    "s": 51.795,
    "l": 38.235
  },
  "oklch": {
    "l": 0.38363,
    "c": 0.15588,
    "h": 274.5
  },
  "luminance": 0.0511
}

Semantic roles & 50–950 ramp

primary
#2F3394
secondary
#B8B567
accent
#D64DDB
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2F3394

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

Preview Lab → · Contrast checker → · Palette generator →

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