#2F3A84#2F3A84

#2F3A84 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.3% C 0.124 H 272.8°. Best body text is #FFFFFF at 10.20:1 contrast (WCAG AA passes).

Color values

HEX#2F3A84
RGBrgb(47, 58, 132)
HSLhsl(232, 47%, 35%)
HSVhsv(232, 64%, 52%)
CMYKcmyk(64.4%, 56.1%, 0%, 48.2%)
CIE-LABlab(27.56, 20.30, -43.11)
CIE-LCHlch(27.56, 47.65, 295.21°)
OKLaboklab(38.34% 0.006 -0.1237)
OKLCHoklch(38.34% 0.124 272.8)
XYZxyz(6.8488, 5.2958, 22.4866)
Luminance0.0530 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3A84 #84792F
analogous
#2F6584 #2F3A84 #4E2F84
triadic
#2F3A84 #842F3A #3A842F
tetradic
#2F3A84 #842F65 #84792F #2F844E
square
#2F3A84 #842F65 #84792F #2F844E
split-complementary
#2F3A84 #844E2F #65842F
monochromatic
#0F122A #1F2657 #2F3A84 #3F4EB1 #6572C8

Accessibility & contrast

On white

10.20
#2F3A84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#2F3A84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3A84
10.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3A84#FFFFFF#000000##FFFFFF
##2F3A841.0010.202.0610.20
#FFFFFF10.201.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#054587
Deuteranopia (green-blind)
#003D82
Tritanopia (blue-blind)
#004B59
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2f3a84;
/* rgb */ color: rgb(47, 58, 132);
/* oklch */ color: oklch(38.3% 0.124 272.8);
Tailwind
colors: {
  custom: {
    50: '#7170a8',
    500: '#2f3a84',
    950: '#000000',
  },
}
SCSS
$custom: #2f3a84;
$custom-light: #7170a8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3a84",
  "rgb": {
    "r": 47,
    "g": 58,
    "b": 132
  },
  "hsl": {
    "h": 232.235,
    "s": 47.486,
    "l": 35.098
  },
  "oklch": {
    "l": 0.38336,
    "c": 0.1239,
    "h": 272.8
  },
  "luminance": 0.05296
}

Semantic roles & 50–950 ramp

primary
#2F3A84
secondary
#AFA560
accent
#C651D7
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #2F3A84

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

Preview Lab → · Contrast checker → · Palette generator →

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