#2F3D8A#2F3D8A

#2F3D8A is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.4% C 0.129 H 271.5°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#2F3D8A
RGBrgb(47, 61, 138)
HSLhsl(231, 49%, 36%)
HSVhsv(231, 66%, 54%)
CMYKcmyk(65.9%, 55.8%, 0%, 45.9%)
CIE-LABlab(28.84, 20.48, -44.77)
CIE-LCHlch(28.84, 49.23, 294.58°)
OKLaboklab(39.44% 0.0034 -0.1286)
OKLCHoklch(39.44% 0.129 271.5)
XYZxyz(7.4269, 5.7762, 24.7633)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3D8A #8A7C2F
analogous
#2F6B8A #2F3D8A #4F2F8A
triadic
#2F3D8A #8A2F3D #3D8A2F
tetradic
#2F3D8A #8A2F6B #8A7C2F #2F8A4F
square
#2F3D8A #8A2F6B #8A7C2F #2F8A4F
split-complementary
#2F3D8A #8A4F2F #6B8A2F
monochromatic
#10152F #1F295C #2F3D8A #3F51B8 #6877CC

Accessibility & contrast

On white

9.74
#2F3D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#2F3D8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3D8A
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3D8A#FFFFFF#000000##FFFFFF
##2F3D8A1.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#05488D
Deuteranopia (green-blind)
#004088
Tritanopia (blue-blind)
#004F5D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2f3d8a;
/* rgb */ color: rgb(47, 61, 138);
/* oklch */ color: oklch(39.4% 0.129 271.5);
Tailwind
colors: {
  custom: {
    50: '#7272ad',
    500: '#2f3d8a',
    950: '#000000',
  },
}
SCSS
$custom: #2f3d8a;
$custom-light: #7272ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3d8a",
  "rgb": {
    "r": 47,
    "g": 61,
    "b": 138
  },
  "hsl": {
    "h": 230.769,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.39439,
    "c": 0.12863,
    "h": 271.5
  },
  "luminance": 0.05777
}

Semantic roles & 50–950 ramp

primary
#2F3D8A
secondary
#B3A662
accent
#C44FD9
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #2F3D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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