#2F3DAE#2F3DAE

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

Color values

HEX#2F3DAE
RGBrgb(47, 61, 174)
HSLhsl(233, 57%, 43%)
HSVhsv(233, 73%, 68%)
CMYKcmyk(73%, 64.9%, 0%, 31.8%)
CIE-LABlab(31.80, 33.72, -61.82)
CIE-LCHlch(31.80, 70.41, 298.61°)
OKLaboklab(42.56% 0.0031 -0.1786)
OKLCHoklch(42.56% 0.179 271)
XYZxyz(10.4784, 6.9967, 40.8345)
Luminance0.0700 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3DAE #AEA02F
analogous
#2F7CAE #2F3DAE #602FAE
triadic
#2F3DAE #AE2F3D #3DAE2F
tetradic
#2F3DAE #AE2F7C #AEA02F #2FAE60
square
#2F3DAE #AE2F7C #AEA02F #2FAE60
split-complementary
#2F3DAE #AE602F #7CAE2F
monochromatic
#151B4E #222C7E #2F3DAE #4C5ACF #7C86DC

Accessibility & contrast

On white

8.75
#2F3DAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#2F3DAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3DAE
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3DAE#FFFFFF#000000##FFFFFF
##2F3DAE1.008.752.408.75
#FFFFFF8.751.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B2
Deuteranopia (green-blind)
#0045AC
Tritanopia (blue-blind)
#005B70
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2f3dae;
/* rgb */ color: rgb(47, 61, 174);
/* oklch */ color: oklch(42.6% 0.179 271.0);
Tailwind
colors: {
  custom: {
    50: '#7a72c7',
    500: '#2f3dae',
    950: '#000000',
  },
}
SCSS
$custom: #2f3dae;
$custom-light: #7a72c7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3dae",
  "rgb": {
    "r": 47,
    "g": 61,
    "b": 174
  },
  "hsl": {
    "h": 233.386,
    "s": 57.466,
    "l": 43.333
  },
  "oklch": {
    "l": 0.42556,
    "c": 0.17868,
    "h": 271
  },
  "luminance": 0.06998
}

Semantic roles & 50–950 ramp

primary
#2F3DAE
secondary
#C4BB75
accent
#D047E1
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #2F3DAE

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

Preview Lab → · Contrast checker → · Palette generator →

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