#2F2CA1#2F2CA1

#2F2CA1 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.5% C 0.181 H 274.9°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#2F2CA1
RGBrgb(47, 44, 161)
HSLhsl(242, 57%, 40%)
HSVhsv(242, 73%, 63%)
CMYKcmyk(70.8%, 72.7%, 0%, 36.9%)
CIE-LABlab(26.67, 39.70, -62.41)
CIE-LCHlch(26.67, 73.97, 302.46°)
OKLaboklab(38.47% 0.0154 -0.1804)
OKLCHoklch(38.47% 0.181 274.9)
XYZxyz(8.5039, 4.9781, 34.2240)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2CA1 #9EA12C
analogous
#2C64A1 #2F2CA1 #692CA1
triadic
#2F2CA1 #A12F2C #2CA12F
tetradic
#2F2CA1 #A12C64 #9EA12C #2CA169
square
#2F2CA1 #A12C64 #9EA12C #2CA169
split-complementary
#2F2CA1 #A1692C #64A12C
monochromatic
#131241 #211F71 #2F2CA1 #4340CB #7270D8

Accessibility & contrast

On white

10.52
#2F2CA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#2F2CA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2CA1
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2CA1#FFFFFF#000000##FFFFFF
##2F2CA11.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A4
Deuteranopia (green-blind)
#003A9F
Tritanopia (blue-blind)
#004D63
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2f2ca1;
/* rgb */ color: rgb(47, 44, 161);
/* oklch */ color: oklch(38.5% 0.181 274.9);
Tailwind
colors: {
  custom: {
    50: '#7966be',
    500: '#2f2ca1',
    950: '#000000',
  },
}
SCSS
$custom: #2f2ca1;
$custom-light: #7966be;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2ca1",
  "rgb": {
    "r": 47,
    "g": 44,
    "b": 161
  },
  "hsl": {
    "h": 241.538,
    "s": 57.073,
    "l": 40.196
  },
  "oklch": {
    "l": 0.3847,
    "c": 0.18107,
    "h": 274.9
  },
  "luminance": 0.04979
}

Semantic roles & 50–950 ramp

primary
#2F2CA1
secondary
#BDBF6A
accent
#E047DC
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2F2CA1

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

Preview Lab → · Contrast checker → · Palette generator →

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