#2F3E88#2F3E88

#2F3E88 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.5% C 0.124 H 271.0°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#2F3E88
RGBrgb(47, 62, 136)
HSLhsl(230, 49%, 36%)
HSVhsv(230, 65%, 53%)
CMYKcmyk(65.4%, 54.4%, 0%, 46.7%)
CIE-LABlab(28.97, 19.06, -43.32)
CIE-LCHlch(28.97, 47.33, 293.75°)
OKLaboklab(39.49% 0.0022 -0.1243)
OKLCHoklch(39.49% 0.124 271)
XYZxyz(7.3374, 5.8265, 24.0257)
Luminance0.0583 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3E88 #88792F
analogous
#2F6A88 #2F3E88 #4C2F88
triadic
#2F3E88 #882F3E #3E882F
tetradic
#2F3E88 #882F6A #88792F #2F884C
square
#2F3E88 #882F6A #88792F #2F884C
split-complementary
#2F3E88 #884C2F #6A882F
monochromatic
#10152D #1F295B #2F3E88 #3F53B5 #6778CA

Accessibility & contrast

On white

9.70
#2F3E88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#2F3E88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3E88
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3E88#FFFFFF#000000##FFFFFF
##2F3E881.009.702.179.70
#FFFFFF9.701.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f3e88;
/* rgb */ color: rgb(47, 62, 136);
/* oklch */ color: oklch(39.5% 0.124 271.0);
Tailwind
colors: {
  custom: {
    50: '#7273ab',
    500: '#2f3e88',
    950: '#000000',
  },
}
SCSS
$custom: #2f3e88;
$custom-light: #7273ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3e88",
  "rgb": {
    "r": 47,
    "g": 62,
    "b": 136
  },
  "hsl": {
    "h": 229.888,
    "s": 48.634,
    "l": 35.882
  },
  "oklch": {
    "l": 0.39489,
    "c": 0.12434,
    "h": 271
  },
  "luminance": 0.05827
}

Semantic roles & 50–950 ramp

primary
#2F3E88
secondary
#B1A461
accent
#C150D8
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2F3E88

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

Preview Lab → · Contrast checker → · Palette generator →

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