#2F3B8D#2F3B8D

#2F3B8D is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.3% C 0.136 H 272.3°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#2F3B8D
RGBrgb(47, 59, 141)
HSLhsl(232, 50%, 37%)
HSVhsv(232, 67%, 55%)
CMYKcmyk(66.7%, 58.2%, 0%, 44.7%)
CIE-LABlab(28.52, 22.95, -47.14)
CIE-LCHlch(28.52, 52.43, 295.96°)
OKLaboklab(39.27% 0.0054 -0.1356)
OKLCHoklch(39.27% 0.136 272.3)
XYZxyz(7.5424, 5.6547, 25.8881)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3B8D #8D812F
analogous
#2F6A8D #2F3B8D #522F8D
triadic
#2F3B8D #8D2F3B #3B8D2F
tetradic
#2F3B8D #8D2F6A #8D812F #2F8D52
square
#2F3B8D #8D2F6A #8D812F #2F8D52
split-complementary
#2F3B8D #8D522F #6A8D2F
monochromatic
#101531 #20285F #2F3B8D #3E4EBB #6976CD

Accessibility & contrast

On white

9.85
#2F3B8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F3B8D
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3B8D#FFFFFF#000000##FFFFFF
##2F3B8D1.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004890
Deuteranopia (green-blind)
#003F8B
Tritanopia (blue-blind)
#004F5E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2f3b8d;
/* rgb */ color: rgb(47, 59, 141);
/* oklch */ color: oklch(39.3% 0.136 272.3);
Tailwind
colors: {
  custom: {
    50: '#7370af',
    500: '#2f3b8d',
    950: '#000000',
  },
}
SCSS
$custom: #2f3b8d;
$custom-light: #7370af;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3b8d",
  "rgb": {
    "r": 47,
    "g": 59,
    "b": 141
  },
  "hsl": {
    "h": 232.34,
    "s": 50,
    "l": 36.863
  },
  "oklch": {
    "l": 0.39274,
    "c": 0.13569,
    "h": 272.3
  },
  "luminance": 0.05655
}

Semantic roles & 50–950 ramp

primary
#2F3B8D
secondary
#B4AA64
accent
#C84EDA
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #2F3B8D

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

Preview Lab → · Contrast checker → · Palette generator →

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