#2F3A88#2F3A88

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

Color values

HEX#2F3A88
RGBrgb(47, 58, 136)
HSLhsl(233, 49%, 36%)
HSVhsv(233, 65%, 53%)
CMYKcmyk(65.4%, 57.4%, 0%, 46.7%)
CIE-LABlab(27.87, 21.78, -45.11)
CIE-LCHlch(27.87, 50.09, 295.77°)
OKLaboklab(38.66% 0.0062 -0.1296)
OKLCHoklch(38.66% 0.13 272.7)
XYZxyz(7.1278, 5.4074, 23.9559)
Luminance0.0541 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3A88 #887D2F
analogous
#2F6688 #2F3A88 #502F88
triadic
#2F3A88 #882F3A #3A882F
tetradic
#2F3A88 #882F66 #887D2F #2F8850
square
#2F3A88 #882F66 #887D2F #2F8850
split-complementary
#2F3A88 #88502F #66882F
monochromatic
#10132D #1F275B #2F3A88 #3F4DB5 #6773CA

Accessibility & contrast

On white

10.09
#2F3A88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F3A88
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3A88#FFFFFF#000000##FFFFFF
##2F3A881.0010.092.0810.09
#FFFFFF10.091.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468B
Deuteranopia (green-blind)
#003E86
Tritanopia (blue-blind)
#004D5B
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2f3a88;
/* rgb */ color: rgb(47, 58, 136);
/* oklch */ color: oklch(38.7% 0.130 272.7);
Tailwind
colors: {
  custom: {
    50: '#7270ab',
    500: '#2f3a88',
    950: '#000000',
  },
}
SCSS
$custom: #2f3a88;
$custom-light: #7270ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3a88",
  "rgb": {
    "r": 47,
    "g": 58,
    "b": 136
  },
  "hsl": {
    "h": 232.584,
    "s": 48.634,
    "l": 35.882
  },
  "oklch": {
    "l": 0.3866,
    "c": 0.12978,
    "h": 272.7
  },
  "luminance": 0.05408
}

Semantic roles & 50–950 ramp

primary
#2F3A88
secondary
#B1A861
accent
#C750D8
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #2F3A88

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

Preview Lab → · Contrast checker → · Palette generator →

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