#2F3DA7#2F3DA7

#2F3DA7 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.9% C 0.169 H 271.2°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#2F3DA7
RGBrgb(47, 61, 167)
HSLhsl(233, 56%, 42%)
HSVhsv(233, 72%, 65%)
CMYKcmyk(71.9%, 63.5%, 0%, 34.5%)
CIE-LABlab(31.19, 31.18, -58.63)
CIE-LCHlch(31.19, 66.40, 298.00°)
OKLaboklab(41.92% 0.0035 -0.1693)
OKLCHoklch(41.92% 0.169 271.2)
XYZxyz(9.8137, 6.7309, 37.3337)
Luminance0.0673 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3DA7 #A7992F
analogous
#2F79A7 #2F3DA7 #5D2FA7
triadic
#2F3DA7 #A72F3D #3DA72F
tetradic
#2F3DA7 #A72F79 #A7992F #2FA75D
square
#2F3DA7 #A72F79 #A7992F #2FA75D
split-complementary
#2F3DA7 #A75D2F #79A72F
monochromatic
#141A47 #222C77 #2F3DA7 #4857CB #7883D9

Accessibility & contrast

On white

8.95
#2F3DA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#2F3DA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3DA7
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3DA7#FFFFFF#000000##FFFFFF
##2F3DA71.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAA
Deuteranopia (green-blind)
#0044A5
Tritanopia (blue-blind)
#00586C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2f3da7;
/* rgb */ color: rgb(47, 61, 167);
/* oklch */ color: oklch(41.9% 0.169 271.2);
Tailwind
colors: {
  custom: {
    50: '#7872c2',
    500: '#2f3da7',
    950: '#000000',
  },
}
SCSS
$custom: #2f3da7;
$custom-light: #7872c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3da7",
  "rgb": {
    "r": 47,
    "g": 61,
    "b": 167
  },
  "hsl": {
    "h": 233,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.41916,
    "c": 0.16935,
    "h": 271.2
  },
  "luminance": 0.06732
}

Semantic roles & 50–950 ramp

primary
#2F3DA7
secondary
#C1B871
accent
#CE48DF
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2F3DA7

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

Preview Lab → · Contrast checker → · Palette generator →

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