#2F2883#2F2883

#2F2883 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.8% C 0.146 H 279.0°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#2F2883
RGBrgb(47, 40, 131)
HSLhsl(245, 53%, 34%)
HSVhsv(245, 69%, 51%)
CMYKcmyk(64.1%, 69.5%, 0%, 48.6%)
CIE-LABlab(22.86, 31.87, -50.14)
CIE-LCHlch(22.86, 59.41, 302.44°)
OKLaboklab(34.85% 0.023 -0.1445)
OKLCHoklch(34.85% 0.146 279)
XYZxyz(6.0265, 3.7602, 21.8765)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2883 #7C8328
analogous
#284E83 #2F2883 #5C2883
triadic
#2F2883 #832F28 #28832F
tetradic
#2F2883 #83284E #7C8328 #28835C
square
#2F2883 #83284E #7C8328 #28835C
split-complementary
#2F2883 #835C28 #4E8328
monochromatic
#0D0B25 #1E1A54 #2F2883 #4036B2 #6259CC

Accessibility & contrast

On white

11.98
#2F2883 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2F2883 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2883
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2883#FFFFFF#000000##FFFFFF
##2F28831.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A86
Deuteranopia (green-blind)
#003381
Tritanopia (blue-blind)
#004052
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2f2883;
/* rgb */ color: rgb(47, 40, 131);
/* oklch */ color: oklch(34.8% 0.146 279.0);
Tailwind
colors: {
  custom: {
    50: '#7263a8',
    500: '#2f2883',
    950: '#000000',
  },
}
SCSS
$custom: #2f2883;
$custom-light: #7263a8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2883",
  "rgb": {
    "r": 47,
    "g": 40,
    "b": 131
  },
  "hsl": {
    "h": 244.615,
    "s": 53.216,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34847,
    "c": 0.14634,
    "h": 279
  },
  "luminance": 0.03761
}

Semantic roles & 50–950 ramp

primary
#2F2883
secondary
#AAB155
accent
#DD4BD1
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2F2883

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

Preview Lab → · Contrast checker → · Palette generator →

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