#2F239F#2F239F

#2F239F is a dark, vivid blue. Relative luminance 0.043; OKLCH L 37.0% C 0.188 H 276.3°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#2F239F
RGBrgb(47, 35, 159)
HSLhsl(246, 64%, 38%)
HSVhsv(246, 78%, 62%)
CMYKcmyk(70.4%, 78%, 0%, 37.6%)
CIE-LABlab(24.67, 44.10, -64.50)
CIE-LCHlch(24.67, 78.14, 304.36°)
OKLaboklab(36.99% 0.0207 -0.1864)
OKLCHoklch(36.99% 0.188 276.3)
XYZxyz(8.0293, 4.3089, 33.2027)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F239F #939F23
analogous
#23559F #2F239F #6D239F
triadic
#2F239F #9F2F23 #239F2F
tetradic
#2F239F #9F2355 #939F23 #239F6D
square
#2F239F #9F2355 #939F23 #239F6D
split-complementary
#2F239F #9F6D23 #559F23
monochromatic
#110D3B #20186D #2F239F #3E2ED1 #6C60DC

Accessibility & contrast

On white

11.28
#2F239F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2F239F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F239F
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F239F#FFFFFF#000000##FFFFFF
##2F239F1.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A3
Deuteranopia (green-blind)
#00359D
Tritanopia (blue-blind)
#004860
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2f239f;
/* rgb */ color: rgb(47, 35, 159);
/* oklch */ color: oklch(37.0% 0.188 276.3);
Tailwind
colors: {
  custom: {
    50: '#7961bd',
    500: '#2f239f',
    950: '#000000',
  },
}
SCSS
$custom: #2f239f;
$custom-light: #7961bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f239f",
  "rgb": {
    "r": 47,
    "g": 35,
    "b": 159
  },
  "hsl": {
    "h": 245.806,
    "s": 63.918,
    "l": 38.039
  },
  "oklch": {
    "l": 0.36988,
    "c": 0.18759,
    "h": 276.3
  },
  "luminance": 0.0431
}

Semantic roles & 50–950 ramp

primary
#2F239F
secondary
#B7C15D
accent
#E741D7
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2F239F

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

Preview Lab → · Contrast checker → · Palette generator →

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