#2F3D8E#2F3D8E

#2F3D8E is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.8% C 0.134 H 271.5°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#2F3D8E
RGBrgb(47, 61, 142)
HSLhsl(231, 50%, 37%)
HSVhsv(231, 67%, 56%)
CMYKcmyk(66.9%, 57%, 0%, 44.3%)
CIE-LABlab(29.14, 21.97, -46.75)
CIE-LCHlch(29.14, 51.65, 295.17°)
OKLaboklab(39.76% 0.0036 -0.1344)
OKLCHoklch(39.76% 0.134 271.5)
XYZxyz(7.7219, 5.8941, 26.3167)
Luminance0.0590 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3D8E #8E802F
analogous
#2F6D8E #2F3D8E #512F8E
triadic
#2F3D8E #8E2F3D #3D8E2F
tetradic
#2F3D8E #8E2F6D #8E802F #2F8E51
square
#2F3D8E #8E2F6D #8E802F #2F8E51
split-complementary
#2F3D8E #8E512F #6D8E2F
monochromatic
#111532 #202960 #2F3D8E #3E51BC #6A78CE

Accessibility & contrast

On white

9.64
#2F3D8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#2F3D8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3D8E
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3D8E#FFFFFF#000000##FFFFFF
##2F3D8E1.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004991
Deuteranopia (green-blind)
#00418C
Tritanopia (blue-blind)
#00505F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2f3d8e;
/* rgb */ color: rgb(47, 61, 142);
/* oklch */ color: oklch(39.8% 0.134 271.5);
Tailwind
colors: {
  custom: {
    50: '#7372b0',
    500: '#2f3d8e',
    950: '#000000',
  },
}
SCSS
$custom: #2f3d8e;
$custom-light: #7372b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3d8e",
  "rgb": {
    "r": 47,
    "g": 61,
    "b": 142
  },
  "hsl": {
    "h": 231.158,
    "s": 50.265,
    "l": 37.059
  },
  "oklch": {
    "l": 0.39762,
    "c": 0.13446,
    "h": 271.5
  },
  "luminance": 0.05895
}

Semantic roles & 50–950 ramp

primary
#2F3D8E
secondary
#B5A964
accent
#C54EDA
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #2F3D8E

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

Preview Lab → · Contrast checker → · Palette generator →

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