#2F3D84#2F3D84

#2F3D84 is a dark, moderate blue. Relative luminance 0.056; OKLCH L 39.0% C 0.120 H 271.4°. Best body text is #FFFFFF at 9.90:1 contrast (WCAG AA passes).

Color values

HEX#2F3D84
RGBrgb(47, 61, 132)
HSLhsl(230, 47%, 35%)
HSVhsv(230, 64%, 52%)
CMYKcmyk(64.4%, 53.8%, 0%, 48.2%)
CIE-LABlab(28.40, 18.25, -41.76)
CIE-LCHlch(28.40, 45.57, 293.61°)
OKLaboklab(38.97% 0.0029 -0.1197)
OKLCHoklch(38.97% 0.12 271.4)
XYZxyz(7.0045, 5.6072, 22.5385)
Luminance0.0561 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3D84 #84762F
analogous
#2F6784 #2F3D84 #4C2F84
triadic
#2F3D84 #842F3D #3D842F
tetradic
#2F3D84 #842F67 #84762F #2F844C
square
#2F3D84 #842F67 #84762F #2F844C
split-complementary
#2F3D84 #844C2F #67842F
monochromatic
#0F132A #1F2857 #2F3D84 #3F52B1 #6575C8

Accessibility & contrast

On white

9.90
#2F3D84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#2F3D84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3D84
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3D84#FFFFFF#000000##FFFFFF
##2F3D841.009.902.129.90
#FFFFFF9.901.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#124787
Deuteranopia (green-blind)
#003F83
Tritanopia (blue-blind)
#004E5A
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2f3d84;
/* rgb */ color: rgb(47, 61, 132);
/* oklch */ color: oklch(39.0% 0.120 271.4);
Tailwind
colors: {
  custom: {
    50: '#7172a8',
    500: '#2f3d84',
    950: '#000000',
  },
}
SCSS
$custom: #2f3d84;
$custom-light: #7172a8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3d84",
  "rgb": {
    "r": 47,
    "g": 61,
    "b": 132
  },
  "hsl": {
    "h": 230.118,
    "s": 47.486,
    "l": 35.098
  },
  "oklch": {
    "l": 0.38966,
    "c": 0.11977,
    "h": 271.4
  },
  "luminance": 0.05608
}

Semantic roles & 50–950 ramp

primary
#2F3D84
secondary
#AFA260
accent
#C151D7
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #2F3D84

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

Preview Lab → · Contrast checker → · Palette generator →

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