#2F3393#2F3393

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

Color values

HEX#2F3393
RGBrgb(47, 51, 147)
HSLhsl(238, 52%, 38%)
HSVhsv(238, 68%, 58%)
CMYKcmyk(68%, 65.3%, 0%, 42.4%)
CIE-LABlab(26.96, 30.45, -53.39)
CIE-LCHlch(26.96, 61.46, 299.70°)
OKLaboklab(38.27% 0.0122 -0.154)
OKLCHoklch(38.27% 0.155 274.5)
XYZxyz(7.6208, 5.0779, 28.1766)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3393 #938F2F
analogous
#2F6593 #2F3393 #5D2F93
triadic
#2F3393 #932F33 #33932F
tetradic
#2F3393 #932F65 #938F2F #2F935D
square
#2F3393 #932F65 #938F2F #2F935D
split-complementary
#2F3393 #935D2F #65932F
monochromatic
#111336 #202365 #2F3393 #3E43C1 #6C70D0

Accessibility & contrast

On white

10.42
#2F3393 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F3393
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3393#FFFFFF#000000##FFFFFF
##2F33931.0010.422.0210.42
#FFFFFF10.421.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f3393;
/* rgb */ color: rgb(47, 51, 147);
/* oklch */ color: oklch(38.3% 0.155 274.5);
Tailwind
colors: {
  custom: {
    50: '#756bb4',
    500: '#2f3393',
    950: '#000000',
  },
}
SCSS
$custom: #2f3393;
$custom-light: #756bb4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3393",
  "rgb": {
    "r": 47,
    "g": 51,
    "b": 147
  },
  "hsl": {
    "h": 237.6,
    "s": 51.546,
    "l": 38.039
  },
  "oklch": {
    "l": 0.38271,
    "c": 0.15451,
    "h": 274.5
  },
  "luminance": 0.05079
}

Semantic roles & 50–950 ramp

primary
#2F3393
secondary
#B7B466
accent
#D54DDB
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2F3393

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

Preview Lab → · Contrast checker → · Palette generator →

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