#2F3183#2F3183

#2F3183 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.5% C 0.135 H 276.3°. Best body text is #FFFFFF at 11.12:1 contrast (WCAG AA passes).

Color values

HEX#2F3183
RGBrgb(47, 49, 131)
HSLhsl(239, 47%, 35%)
HSVhsv(239, 64%, 51%)
CMYKcmyk(64.1%, 62.6%, 0%, 48.6%)
CIE-LABlab(25.07, 26.02, -46.53)
CIE-LCHlch(25.07, 53.31, 299.21°)
OKLaboklab(36.46% 0.0149 -0.1339)
OKLCHoklch(36.46% 0.135 276.3)
XYZxyz(6.3660, 4.4391, 21.9897)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3183 #83812F
analogous
#2F5B83 #2F3183 #572F83
triadic
#2F3183 #832F31 #31832F
tetradic
#2F3183 #832F5B #83812F #2F8357
square
#2F3183 #832F5B #83812F #2F8357
split-complementary
#2F3183 #83572F #5B832F
monochromatic
#0F0F29 #1F2056 #2F3183 #3F42B0 #6567C8

Accessibility & contrast

On white

11.12
#2F3183 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#2F3183 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3183
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3183#FFFFFF#000000##FFFFFF
##2F31831.0011.121.8911.12
#FFFFFF11.121.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F86
Deuteranopia (green-blind)
#003881
Tritanopia (blue-blind)
#004555
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2f3183;
/* rgb */ color: rgb(47, 49, 131);
/* oklch */ color: oklch(36.5% 0.135 276.3);
Tailwind
colors: {
  custom: {
    50: '#7269a8',
    500: '#2f3183',
    950: '#000000',
  },
}
SCSS
$custom: #2f3183;
$custom-light: #7269a8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3183",
  "rgb": {
    "r": 47,
    "g": 49,
    "b": 131
  },
  "hsl": {
    "h": 238.571,
    "s": 47.191,
    "l": 34.902
  },
  "oklch": {
    "l": 0.36461,
    "c": 0.13471,
    "h": 276.3
  },
  "luminance": 0.0444
}

Semantic roles & 50–950 ramp

primary
#2F3183
secondary
#AFAD5F
accent
#D451D7
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #2F3183

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

Preview Lab → · Contrast checker → · Palette generator →

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