#2F2895#2F2895

#2F2895 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.6% C 0.170 H 276.8°. Best body text is #FFFFFF at 11.30:1 contrast (WCAG AA passes).

Color values

HEX#2F2895
RGBrgb(47, 40, 149)
HSLhsl(244, 58%, 37%)
HSVhsv(244, 73%, 58%)
CMYKcmyk(68.5%, 73.2%, 0%, 41.6%)
CIE-LABlab(24.61, 38.01, -58.46)
CIE-LCHlch(24.61, 69.73, 303.03°)
OKLaboklab(36.64% 0.02 -0.1689)
OKLCHoklch(36.64% 0.17 276.8)
XYZxyz(7.3541, 4.2912, 28.8687)
Luminance0.0429 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2895 #8E9528
analogous
#285895 #2F2895 #662895
triadic
#2F2895 #952F28 #28952F
tetradic
#2F2895 #952858 #8E9528 #289566
square
#2F2895 #952858 #8E9528 #289566
split-complementary
#2F2895 #956628 #589528
monochromatic
#110E35 #201B65 #2F2895 #3E35C5 #6A62D5

Accessibility & contrast

On white

11.30
#2F2895 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2F2895 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2895
11.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2895#FFFFFF#000000##FFFFFF
##2F28951.0011.301.8611.30
#FFFFFF11.301.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F98
Deuteranopia (green-blind)
#003693
Tritanopia (blue-blind)
#00465C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2f2895;
/* rgb */ color: rgb(47, 40, 149);
/* oklch */ color: oklch(36.6% 0.170 276.8);
Tailwind
colors: {
  custom: {
    50: '#7663b5',
    500: '#2f2895',
    950: '#000000',
  },
}
SCSS
$custom: #2f2895;
$custom-light: #7663b5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2895",
  "rgb": {
    "r": 47,
    "g": 40,
    "b": 149
  },
  "hsl": {
    "h": 243.853,
    "s": 57.672,
    "l": 37.059
  },
  "oklch": {
    "l": 0.36635,
    "c": 0.17006,
    "h": 276.8
  },
  "luminance": 0.04292
}

Semantic roles & 50–950 ramp

primary
#2F2895
secondary
#B5BB5E
accent
#E147D7
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #2F2895

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

Preview Lab → · Contrast checker → · Palette generator →

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