#2F239A#2F239A

#2F239A is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.4% C 0.181 H 276.9°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#2F239A
RGBrgb(47, 35, 154)
HSLhsl(246, 63%, 37%)
HSVhsv(246, 77%, 60%)
CMYKcmyk(69.5%, 77.3%, 0%, 39.6%)
CIE-LABlab(24.13, 42.49, -62.34)
CIE-LCHlch(24.13, 75.45, 304.28°)
OKLaboklab(36.45% 0.022 -0.1801)
OKLCHoklch(36.45% 0.181 276.9)
XYZxyz(7.6042, 4.1388, 30.9637)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F239A #8E9A23
analogous
#23539A #2F239A #6A239A
triadic
#2F239A #9A2F23 #239A2F
tetradic
#2F239A #9A2353 #8E9A23 #239A6A
square
#2F239A #9A2353 #8E9A23 #239A6A
split-complementary
#2F239A #9A6A23 #539A23
monochromatic
#110C36 #201868 #2F239A #3E2ECC #6A5DDA

Accessibility & contrast

On white

11.49
#2F239A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#2F239A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F239A
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F239A#FFFFFF#000000##FFFFFF
##2F239A1.0011.491.8311.49
#FFFFFF11.491.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9D
Deuteranopia (green-blind)
#003498
Tritanopia (blue-blind)
#00465D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2f239a;
/* rgb */ color: rgb(47, 35, 154);
/* oklch */ color: oklch(36.4% 0.181 276.9);
Tailwind
colors: {
  custom: {
    50: '#7860b9',
    500: '#2f239a',
    950: '#000000',
  },
}
SCSS
$custom: #2f239a;
$custom-light: #7860b9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f239a",
  "rgb": {
    "r": 47,
    "g": 35,
    "b": 154
  },
  "hsl": {
    "h": 246.05,
    "s": 62.963,
    "l": 37.059
  },
  "oklch": {
    "l": 0.36447,
    "c": 0.18148,
    "h": 276.9
  },
  "luminance": 0.04139
}

Semantic roles & 50–950 ramp

primary
#2F239A
secondary
#B5BF5A
accent
#E642D5
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2F239A

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

Preview Lab → · Contrast checker → · Palette generator →

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