#2F3DA4#2F3DA4

#2F3DA4 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.6% C 0.165 H 271.2°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#2F3DA4
RGBrgb(47, 61, 164)
HSLhsl(233, 55%, 41%)
HSVhsv(233, 71%, 64%)
CMYKcmyk(71.3%, 62.8%, 0%, 35.7%)
CIE-LABlab(30.93, 30.09, -57.24)
CIE-LCHlch(30.93, 64.67, 297.72°)
OKLaboklab(41.65% 0.0036 -0.1652)
OKLCHoklch(41.65% 0.165 271.2)
XYZxyz(9.5396, 6.6212, 35.8900)
Luminance0.0662 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3DA4 #A4962F
analogous
#2F78A4 #2F3DA4 #5C2FA4
triadic
#2F3DA4 #A42F3D #3DA42F
tetradic
#2F3DA4 #A42F78 #A4962F #2FA45C
square
#2F3DA4 #A42F78 #A4962F #2FA45C
split-complementary
#2F3DA4 #A45C2F #78A42F
monochromatic
#141A45 #212B74 #2F3DA4 #4656CA #7681D8

Accessibility & contrast

On white

9.03
#2F3DA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#2F3DA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3DA4
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3DA4#FFFFFF#000000##FFFFFF
##2F3DA41.009.032.329.03
#FFFFFF9.031.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA7
Deuteranopia (green-blind)
#0043A2
Tritanopia (blue-blind)
#00576A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2f3da4;
/* rgb */ color: rgb(47, 61, 164);
/* oklch */ color: oklch(41.6% 0.165 271.2);
Tailwind
colors: {
  custom: {
    50: '#7872c0',
    500: '#2f3da4',
    950: '#000000',
  },
}
SCSS
$custom: #2f3da4;
$custom-light: #7872c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3da4",
  "rgb": {
    "r": 47,
    "g": 61,
    "b": 164
  },
  "hsl": {
    "h": 232.821,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.41647,
    "c": 0.16529,
    "h": 271.2
  },
  "luminance": 0.06622
}

Semantic roles & 50–950 ramp

primary
#2F3DA4
secondary
#C0B66F
accent
#CD49DF
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2F3DA4

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

Preview Lab → · Contrast checker → · Palette generator →

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