#2F2F9B#2F2F9B

#2F2F9B is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.3% C 0.170 H 274.8°. Best body text is #FFFFFF at 10.50:1 contrast (WCAG AA passes).

Color values

HEX#2F2F9B
RGBrgb(47, 47, 155)
HSLhsl(240, 53%, 40%)
HSVhsv(240, 70%, 61%)
CMYKcmyk(69.7%, 69.7%, 0%, 39.2%)
CIE-LABlab(26.74, 35.82, -58.64)
CIE-LCHlch(26.74, 68.71, 301.42°)
OKLaboklab(38.34% 0.0144 -0.1694)
OKLCHoklch(38.34% 0.17 274.8)
XYZxyz(8.1032, 5.0032, 31.5427)
Luminance0.0500 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2F9B #9B9B2F
analogous
#2F659B #2F2F9B #652F9B
triadic
#2F2F9B #9B2F2F #2F9B2F
tetradic
#2F2F9B #9B2F65 #9B9B2F #2F9B65
square
#2F2F9B #9B2F65 #9B9B2F #2F9B65
split-complementary
#2F2F9B #9B652F #659B2F
monochromatic
#13133D #21216C #2F2F9B #4242C6 #7171D4

Accessibility & contrast

On white

10.50
#2F2F9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F2F9B
10.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2F9B#FFFFFF#000000##FFFFFF
##2F2F9B1.0010.502.0010.50
#FFFFFF10.501.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449E
Deuteranopia (green-blind)
#003A99
Tritanopia (blue-blind)
#004C61
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2f2f9b;
/* rgb */ color: rgb(47, 47, 155);
/* oklch */ color: oklch(38.3% 0.170 274.8);
Tailwind
colors: {
  custom: {
    50: '#7768ba',
    500: '#2f2f9b',
    950: '#000000',
  },
}
SCSS
$custom: #2f2f9b;
$custom-light: #7768ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2f9b",
  "rgb": {
    "r": 47,
    "g": 47,
    "b": 155
  },
  "hsl": {
    "h": 240,
    "s": 53.465,
    "l": 39.608
  },
  "oklch": {
    "l": 0.38343,
    "c": 0.17002,
    "h": 274.8
  },
  "luminance": 0.05004
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F2F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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