#2F3DAD#2F3DAD

#2F3DAD is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.5% C 0.177 H 271.0°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#2F3DAD
RGBrgb(47, 61, 173)
HSLhsl(233, 57%, 43%)
HSVhsv(233, 73%, 68%)
CMYKcmyk(72.8%, 64.7%, 0%, 32.2%)
CIE-LABlab(31.71, 33.36, -61.36)
CIE-LCHlch(31.71, 69.84, 298.53°)
OKLaboklab(42.46% 0.0032 -0.1773)
OKLCHoklch(42.46% 0.177 271)
XYZxyz(10.3813, 6.9579, 40.3230)
Luminance0.0696 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3DAD #AD9F2F
analogous
#2F7CAD #2F3DAD #602FAD
triadic
#2F3DAD #AD2F3D #3DAD2F
tetradic
#2F3DAD #AD2F7C #AD9F2F #2FAD60
square
#2F3DAD #AD2F7C #AD9F2F #2FAD60
split-complementary
#2F3DAD #AD602F #7CAD2F
monochromatic
#151B4D #222C7D #2F3DAD #4B5ACE #7B86DB

Accessibility & contrast

On white

8.78
#2F3DAD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#2F3DAD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3DAD
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3DAD#FFFFFF#000000##FFFFFF
##2F3DAD1.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B1
Deuteranopia (green-blind)
#0045AB
Tritanopia (blue-blind)
#005A6F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2f3dad;
/* rgb */ color: rgb(47, 61, 173);
/* oklch */ color: oklch(42.5% 0.177 271.0);
Tailwind
colors: {
  custom: {
    50: '#7a72c6',
    500: '#2f3dad',
    950: '#000000',
  },
}
SCSS
$custom: #2f3dad;
$custom-light: #7a72c6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3dad",
  "rgb": {
    "r": 47,
    "g": 61,
    "b": 173
  },
  "hsl": {
    "h": 233.333,
    "s": 57.273,
    "l": 43.137
  },
  "oklch": {
    "l": 0.42464,
    "c": 0.17736,
    "h": 271
  },
  "luminance": 0.06959
}

Semantic roles & 50–950 ramp

primary
#2F3DAD
secondary
#C4BB74
accent
#CF47E1
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #2F3DAD

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

Preview Lab → · Contrast checker → · Palette generator →

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