#2F3D85#2F3D85

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

Color values

HEX#2F3D85
RGBrgb(47, 61, 133)
HSLhsl(230, 48%, 35%)
HSVhsv(230, 65%, 52%)
CMYKcmyk(64.7%, 54.1%, 0%, 47.8%)
CIE-LABlab(28.47, 18.62, -42.26)
CIE-LCHlch(28.47, 46.19, 293.78°)
OKLaboklab(39.04% 0.003 -0.1212)
OKLCHoklch(39.04% 0.121 271.4)
XYZxyz(7.0733, 5.6347, 22.9006)
Luminance0.0563 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3D85 #85772F
analogous
#2F6885 #2F3D85 #4C2F85
triadic
#2F3D85 #852F3D #3D852F
tetradic
#2F3D85 #852F68 #85772F #2F854C
square
#2F3D85 #852F68 #85772F #2F854C
split-complementary
#2F3D85 #854C2F #68852F
monochromatic
#0F142B #1F2858 #2F3D85 #3F52B2 #6676C9

Accessibility & contrast

On white

9.87
#2F3D85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#2F3D85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3D85
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3D85#FFFFFF#000000##FFFFFF
##2F3D851.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#114788
Deuteranopia (green-blind)
#003F84
Tritanopia (blue-blind)
#004E5B
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2f3d85;
/* rgb */ color: rgb(47, 61, 133);
/* oklch */ color: oklch(39.0% 0.121 271.4);
Tailwind
colors: {
  custom: {
    50: '#7172a9',
    500: '#2f3d85',
    950: '#000000',
  },
}
SCSS
$custom: #2f3d85;
$custom-light: #7172a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3d85",
  "rgb": {
    "r": 47,
    "g": 61,
    "b": 133
  },
  "hsl": {
    "h": 230.233,
    "s": 47.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.39044,
    "c": 0.12126,
    "h": 271.4
  },
  "luminance": 0.05635
}

Semantic roles & 50–950 ramp

primary
#2F3D85
secondary
#B0A360
accent
#C150D7
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #2F3D85

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

Preview Lab → · Contrast checker → · Palette generator →

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