#2F2A9B#2F2A9B

#2F2A9B is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.6% C 0.176 H 275.8°. Best body text is #FFFFFF at 10.91:1 contrast (WCAG AA passes).

Color values

HEX#2F2A9B
RGBrgb(47, 42, 155)
HSLhsl(243, 57%, 39%)
HSVhsv(243, 73%, 61%)
CMYKcmyk(69.7%, 72.9%, 0%, 39.2%)
CIE-LABlab(25.64, 38.85, -60.45)
CIE-LCHlch(25.64, 71.86, 302.73°)
OKLaboklab(37.55% 0.0176 -0.1747)
OKLCHoklch(37.55% 0.176 275.8)
XYZxyz(7.9147, 4.6261, 31.4798)
Luminance0.0463 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2A9B #969B2A
analogous
#2A5D9B #2F2A9B #672A9B
triadic
#2F2A9B #9B2F2A #2A9B2F
tetradic
#2F2A9B #9B2A5D #969B2A #2A9B67
square
#2F2A9B #9B2A5D #969B2A #2A9B67
split-complementary
#2F2A9B #9B672A #5D9B2A
monochromatic
#12103B #201D6B #2F2A9B #3F39C9 #6E69D6

Accessibility & contrast

On white

10.91
#2F2A9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#2F2A9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2A9B
10.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2A9B#FFFFFF#000000##FFFFFF
##2F2A9B1.0010.911.9310.91
#FFFFFF10.911.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429E
Deuteranopia (green-blind)
#003899
Tritanopia (blue-blind)
#004A60
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2f2a9b;
/* rgb */ color: rgb(47, 42, 155);
/* oklch */ color: oklch(37.6% 0.176 275.8);
Tailwind
colors: {
  custom: {
    50: '#7765ba',
    500: '#2f2a9b',
    950: '#000000',
  },
}
SCSS
$custom: #2f2a9b;
$custom-light: #7765ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2a9b",
  "rgb": {
    "r": 47,
    "g": 42,
    "b": 155
  },
  "hsl": {
    "h": 242.655,
    "s": 57.36,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37553,
    "c": 0.17558,
    "h": 275.8
  },
  "luminance": 0.04627
}

Semantic roles & 50–950 ramp

primary
#2F2A9B
secondary
#B9BD64
accent
#E147DA
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2F2A9B

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

Preview Lab → · Contrast checker → · Palette generator →

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