#2F3D8F#2F3D8F

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

Color values

HEX#2F3D8F
RGBrgb(47, 61, 143)
HSLhsl(231, 51%, 37%)
HSVhsv(231, 67%, 56%)
CMYKcmyk(67.1%, 57.3%, 0%, 43.9%)
CIE-LABlab(29.22, 22.34, -47.24)
CIE-LCHlch(29.22, 52.25, 295.31°)
OKLaboklab(39.84% 0.0036 -0.1358)
OKLCHoklch(39.84% 0.136 271.5)
XYZxyz(7.7973, 5.9243, 26.7139)
Luminance0.0592 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3D8F #8F812F
analogous
#2F6D8F #2F3D8F #512F8F
triadic
#2F3D8F #8F2F3D #3D8F2F
tetradic
#2F3D8F #8F2F6D #8F812F #2F8F51
square
#2F3D8F #8F2F6D #8F812F #2F8F51
split-complementary
#2F3D8F #8F512F #6D8F2F
monochromatic
#111633 #202961 #2F3D8F #3E51BD #6A79CE

Accessibility & contrast

On white

9.61
#2F3D8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#2F3D8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3D8F
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3D8F#FFFFFF#000000##FFFFFF
##2F3D8F1.009.612.199.61
#FFFFFF9.611.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004992
Deuteranopia (green-blind)
#00418D
Tritanopia (blue-blind)
#005160
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2f3d8f;
/* rgb */ color: rgb(47, 61, 143);
/* oklch */ color: oklch(39.8% 0.136 271.5);
Tailwind
colors: {
  custom: {
    50: '#7372b0',
    500: '#2f3d8f',
    950: '#000000',
  },
}
SCSS
$custom: #2f3d8f;
$custom-light: #7372b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3d8f",
  "rgb": {
    "r": 47,
    "g": 61,
    "b": 143
  },
  "hsl": {
    "h": 231.25,
    "s": 50.526,
    "l": 37.255
  },
  "oklch": {
    "l": 0.39844,
    "c": 0.1359,
    "h": 271.5
  },
  "luminance": 0.05925
}

Semantic roles & 50–950 ramp

primary
#2F3D8F
secondary
#B5A965
accent
#C64EDA
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2F3D8F

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

Preview Lab → · Contrast checker → · Palette generator →

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