#2F3A87#2F3A87

#2F3A87 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 38.6% C 0.128 H 272.7°. Best body text is #FFFFFF at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#2F3A87
RGBrgb(47, 58, 135)
HSLhsl(233, 48%, 36%)
HSVhsv(233, 65%, 53%)
CMYKcmyk(65.2%, 57%, 0%, 47.1%)
CIE-LABlab(27.79, 21.41, -44.61)
CIE-LCHlch(27.79, 49.48, 295.63°)
OKLaboklab(38.58% 0.0062 -0.1282)
OKLCHoklch(38.58% 0.128 272.7)
XYZxyz(7.0571, 5.3791, 23.5834)
Luminance0.0538 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3A87 #877C2F
analogous
#2F6687 #2F3A87 #502F87
triadic
#2F3A87 #872F3A #3A872F
tetradic
#2F3A87 #872F66 #877C2F #2F8750
square
#2F3A87 #872F66 #877C2F #2F8750
split-complementary
#2F3A87 #87502F #66872F
monochromatic
#0F132C #1F265A #2F3A87 #3F4EB4 #6673CA

Accessibility & contrast

On white

10.12
#2F3A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#2F3A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3A87
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3A87#FFFFFF#000000##FFFFFF
##2F3A871.0010.122.0810.12
#FFFFFF10.121.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468A
Deuteranopia (green-blind)
#003E85
Tritanopia (blue-blind)
#004C5A
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2f3a87;
/* rgb */ color: rgb(47, 58, 135);
/* oklch */ color: oklch(38.6% 0.128 272.7);
Tailwind
colors: {
  custom: {
    50: '#7270ab',
    500: '#2f3a87',
    950: '#000000',
  },
}
SCSS
$custom: #2f3a87;
$custom-light: #7270ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3a87",
  "rgb": {
    "r": 47,
    "g": 58,
    "b": 135
  },
  "hsl": {
    "h": 232.5,
    "s": 48.352,
    "l": 35.686
  },
  "oklch": {
    "l": 0.38578,
    "c": 0.12832,
    "h": 272.7
  },
  "luminance": 0.0538
}

Semantic roles & 50–950 ramp

primary
#2F3A87
secondary
#B1A761
accent
#C750D8
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #2F3A87

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

Preview Lab → · Contrast checker → · Palette generator →

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