#2F3F85#2F3F85

#2F3F85 is a dark, moderate blue. Relative luminance 0.059; OKLCH L 39.5% C 0.119 H 270.4°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#2F3F85
RGBrgb(47, 63, 133)
HSLhsl(229, 48%, 35%)
HSVhsv(229, 65%, 52%)
CMYKcmyk(64.7%, 52.6%, 0%, 47.8%)
CIE-LABlab(29.04, 17.26, -41.35)
CIE-LCHlch(29.04, 44.81, 292.66°)
OKLaboklab(39.47% 0.0009 -0.1185)
OKLCHoklch(39.47% 0.119 270.4)
XYZxyz(7.1820, 5.8522, 22.9369)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3F85 #85752F
analogous
#2F6A85 #2F3F85 #4A2F85
triadic
#2F3F85 #852F3F #3F852F
tetradic
#2F3F85 #852F6A #85752F #2F854A
square
#2F3F85 #852F6A #85752F #2F854A
split-complementary
#2F3F85 #854A2F #6A852F
monochromatic
#0F142B #1F2A58 #2F3F85 #3F54B2 #6678C9

Accessibility & contrast

On white

9.67
#2F3F85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#2F3F85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3F85
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3F85#FFFFFF#000000##FFFFFF
##2F3F851.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#174888
Deuteranopia (green-blind)
#004184
Tritanopia (blue-blind)
#004F5B
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2f3f85;
/* rgb */ color: rgb(47, 63, 133);
/* oklch */ color: oklch(39.5% 0.119 270.4);
Tailwind
colors: {
  custom: {
    50: '#7173a9',
    500: '#2f3f85',
    950: '#000000',
  },
}
SCSS
$custom: #2f3f85;
$custom-light: #7173a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3f85",
  "rgb": {
    "r": 47,
    "g": 63,
    "b": 133
  },
  "hsl": {
    "h": 228.837,
    "s": 47.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.3947,
    "c": 0.11851,
    "h": 270.4
  },
  "luminance": 0.05853
}

Semantic roles & 50–950 ramp

primary
#2F3F85
secondary
#B0A160
accent
#BE50D7
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2F3F85

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

Preview Lab → · Contrast checker → · Palette generator →

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