#2F3EAA#2F3EAA

#2F3EAA is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.4% C 0.172 H 270.9°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#2F3EAA
RGBrgb(47, 62, 170)
HSLhsl(233, 57%, 43%)
HSVhsv(233, 72%, 67%)
CMYKcmyk(72.4%, 63.5%, 0%, 33.3%)
CIE-LABlab(31.69, 31.62, -59.60)
CIE-LCHlch(31.69, 67.47, 297.95°)
OKLaboklab(42.37% 0.0026 -0.1721)
OKLCHoklch(42.37% 0.172 270.9)
XYZxyz(10.1481, 6.9508, 38.8292)
Luminance0.0695 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3EAA #AA9B2F
analogous
#2F7BAA #2F3EAA #5E2FAA
triadic
#2F3EAA #AA2F3E #3EAA2F
tetradic
#2F3EAA #AA2F7B #AA9B2F #2FAA5E
square
#2F3EAA #AA2F7B #AA9B2F #2FAA5E
split-complementary
#2F3EAA #AA5E2F #7BAA2F
monochromatic
#141B4A #222D7A #2F3EAA #4959CD #7985DA

Accessibility & contrast

On white

8.79
#2F3EAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F3EAA
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3EAA#FFFFFF#000000##FFFFFF
##2F3EAA1.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AD
Deuteranopia (green-blind)
#0045A8
Tritanopia (blue-blind)
#005A6E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2f3eaa;
/* rgb */ color: rgb(47, 62, 170);
/* oklch */ color: oklch(42.4% 0.172 270.9);
Tailwind
colors: {
  custom: {
    50: '#7973c4',
    500: '#2f3eaa',
    950: '#000000',
  },
}
SCSS
$custom: #2f3eaa;
$custom-light: #7973c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3eaa",
  "rgb": {
    "r": 47,
    "g": 62,
    "b": 170
  },
  "hsl": {
    "h": 232.683,
    "s": 56.682,
    "l": 42.549
  },
  "oklch": {
    "l": 0.42371,
    "c": 0.17216,
    "h": 270.9
  },
  "luminance": 0.06952
}

Semantic roles & 50–950 ramp

primary
#2F3EAA
secondary
#C2B972
accent
#CD48E0
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2F3EAA

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

Preview Lab → · Contrast checker → · Palette generator →

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