#2F3BAF#2F3BAF

#2F3BAF is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.3% C 0.182 H 271.4°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#2F3BAF
RGBrgb(47, 59, 175)
HSLhsl(234, 58%, 44%)
HSVhsv(234, 73%, 69%)
CMYKcmyk(73.1%, 66.3%, 0%, 31.4%)
CIE-LABlab(31.41, 35.35, -63.05)
CIE-LCHlch(31.41, 72.29, 299.28°)
OKLaboklab(42.3% 0.0044 -0.1823)
OKLCHoklch(42.3% 0.182 271.4)
XYZxyz(10.4715, 6.8263, 41.3149)
Luminance0.0683 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3BAF #AFA32F
analogous
#2F7BAF #2F3BAF #632FAF
triadic
#2F3BAF #AF2F3B #3BAF2F
tetradic
#2F3BAF #AF2F7B #AFA32F #2FAF63
square
#2F3BAF #AF2F7B #AFA32F #2FAF63
split-complementary
#2F3BAF #AF632F #7BAF2F
monochromatic
#151A4F #222B7F #2F3BAF #4C58CF #7C85DC

Accessibility & contrast

On white

8.88
#2F3BAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#2F3BAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3BAF
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3BAF#FFFFFF#000000##FFFFFF
##2F3BAF1.008.882.378.88
#FFFFFF8.881.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B3
Deuteranopia (green-blind)
#0044AD
Tritanopia (blue-blind)
#005A70
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2f3baf;
/* rgb */ color: rgb(47, 59, 175);
/* oklch */ color: oklch(42.3% 0.182 271.4);
Tailwind
colors: {
  custom: {
    50: '#7a71c8',
    500: '#2f3baf',
    950: '#000000',
  },
}
SCSS
$custom: #2f3baf;
$custom-light: #7a71c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3baf",
  "rgb": {
    "r": 47,
    "g": 59,
    "b": 175
  },
  "hsl": {
    "h": 234.375,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.42298,
    "c": 0.18234,
    "h": 271.4
  },
  "luminance": 0.06827
}

Semantic roles & 50–950 ramp

primary
#2F3BAF
secondary
#C4BD75
accent
#D247E1
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2F3BAF

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

Preview Lab → · Contrast checker → · Palette generator →

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