#2F2F9A#2F2F9A

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

Color values

HEX#2F2F9A
RGBrgb(47, 47, 154)
HSLhsl(240, 53%, 39%)
HSVhsv(240, 69%, 60%)
CMYKcmyk(69.5%, 69.5%, 0%, 39.6%)
CIE-LABlab(26.65, 35.47, -58.19)
CIE-LCHlch(26.65, 68.15, 301.37°)
OKLaboklab(38.25% 0.0145 -0.1681)
OKLCHoklch(38.25% 0.169 274.9)
XYZxyz(8.0196, 4.9697, 31.1022)
Luminance0.0497 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2F9A #9A9A2F
analogous
#2F659A #2F2F9A #652F9A
triadic
#2F2F9A #9A2F2F #2F9A2F
tetradic
#2F2F9A #9A2F65 #9A9A2F #2F9A65
square
#2F2F9A #9A2F65 #9A9A2F #2F9A65
split-complementary
#2F2F9A #9A652F #659A2F
monochromatic
#12123C #21216B #2F2F9A #4141C5 #7070D3

Accessibility & contrast

On white

10.53
#2F2F9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#2F2F9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2F9A
10.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2F9A#FFFFFF#000000##FFFFFF
##2F2F9A1.0010.531.9910.53
#FFFFFF10.531.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449D
Deuteranopia (green-blind)
#003A98
Tritanopia (blue-blind)
#004C60
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2f2f9a;
/* rgb */ color: rgb(47, 47, 154);
/* oklch */ color: oklch(38.2% 0.169 274.9);
Tailwind
colors: {
  custom: {
    50: '#7768b9',
    500: '#2f2f9a',
    950: '#000000',
  },
}
SCSS
$custom: #2f2f9a;
$custom-light: #7768b9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2f9a",
  "rgb": {
    "r": 47,
    "g": 47,
    "b": 154
  },
  "hsl": {
    "h": 240,
    "s": 53.234,
    "l": 39.412
  },
  "oklch": {
    "l": 0.38245,
    "c": 0.1687,
    "h": 274.9
  },
  "luminance": 0.0497
}

Semantic roles & 50–950 ramp

primary
#2F2F9A
secondary
#BBBB6A
accent
#DD4BDD
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2F2F9A

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

Preview Lab → · Contrast checker → · Palette generator →

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