#2F3D88#2F3D88

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

Color values

HEX#2F3D88
RGBrgb(47, 61, 136)
HSLhsl(231, 49%, 36%)
HSVhsv(231, 65%, 53%)
CMYKcmyk(65.4%, 55.1%, 0%, 46.7%)
CIE-LABlab(28.69, 19.74, -43.77)
CIE-LCHlch(28.69, 48.02, 294.27°)
OKLaboklab(39.28% 0.0032 -0.1257)
OKLCHoklch(39.28% 0.126 271.5)
XYZxyz(7.2835, 5.7188, 24.0078)
Luminance0.0572 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3D88 #887A2F
analogous
#2F6988 #2F3D88 #4D2F88
triadic
#2F3D88 #882F3D #3D882F
tetradic
#2F3D88 #882F69 #887A2F #2F884D
square
#2F3D88 #882F69 #887A2F #2F884D
split-complementary
#2F3D88 #884D2F #69882F
monochromatic
#10142D #1F295B #2F3D88 #3F51B5 #6777CA

Accessibility & contrast

On white

9.80
#2F3D88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#2F3D88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3D88
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3D88#FFFFFF#000000##FFFFFF
##2F3D881.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A488B
Deuteranopia (green-blind)
#004086
Tritanopia (blue-blind)
#004F5C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2f3d88;
/* rgb */ color: rgb(47, 61, 136);
/* oklch */ color: oklch(39.3% 0.126 271.5);
Tailwind
colors: {
  custom: {
    50: '#7272ab',
    500: '#2f3d88',
    950: '#000000',
  },
}
SCSS
$custom: #2f3d88;
$custom-light: #7272ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3d88",
  "rgb": {
    "r": 47,
    "g": 61,
    "b": 136
  },
  "hsl": {
    "h": 230.562,
    "s": 48.634,
    "l": 35.882
  },
  "oklch": {
    "l": 0.39279,
    "c": 0.1257,
    "h": 271.5
  },
  "luminance": 0.05719
}

Semantic roles & 50–950 ramp

primary
#2F3D88
secondary
#B1A561
accent
#C350D8
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #2F3D88

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

Preview Lab → · Contrast checker → · Palette generator →

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