#2F239B#2F239B

#2F239B is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.6% C 0.183 H 276.8°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#2F239B
RGBrgb(47, 35, 155)
HSLhsl(246, 63%, 37%)
HSVhsv(246, 77%, 61%)
CMYKcmyk(69.7%, 77.4%, 0%, 39.2%)
CIE-LABlab(24.23, 42.82, -62.77)
CIE-LCHlch(24.23, 75.99, 304.30°)
OKLaboklab(36.56% 0.0217 -0.1814)
OKLCHoklch(36.56% 0.183 276.8)
XYZxyz(7.6878, 4.1723, 31.4042)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F239B #8F9B23
analogous
#23539B #2F239B #6B239B
triadic
#2F239B #9B2F23 #239B2F
tetradic
#2F239B #9B2353 #8F9B23 #239B6B
square
#2F239B #9B2353 #8F9B23 #239B6B
split-complementary
#2F239B #9B6B23 #539B23
monochromatic
#110C37 #201869 #2F239B #3E2ECD #6A5EDB

Accessibility & contrast

On white

11.45
#2F239B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F239B
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F239B#FFFFFF#000000##FFFFFF
##2F239B1.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9E
Deuteranopia (green-blind)
#003499
Tritanopia (blue-blind)
#00465E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2f239b;
/* rgb */ color: rgb(47, 35, 155);
/* oklch */ color: oklch(36.6% 0.183 276.8);
Tailwind
colors: {
  custom: {
    50: '#7861ba',
    500: '#2f239b',
    950: '#000000',
  },
}
SCSS
$custom: #2f239b;
$custom-light: #7861ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2f239b",
  "rgb": {
    "r": 47,
    "g": 35,
    "b": 155
  },
  "hsl": {
    "h": 246,
    "s": 63.158,
    "l": 37.255
  },
  "oklch": {
    "l": 0.36555,
    "c": 0.1827,
    "h": 276.8
  },
  "luminance": 0.04173
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F239B

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

Preview Lab → · Contrast checker → · Palette generator →

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