#2F239E#2F239E

#2F239E is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.9% C 0.186 H 276.5°. Best body text is #FFFFFF at 11.32:1 contrast (WCAG AA passes).

Color values

HEX#2F239E
RGBrgb(47, 35, 158)
HSLhsl(246, 64%, 38%)
HSVhsv(246, 78%, 62%)
CMYKcmyk(70.3%, 77.8%, 0%, 38%)
CIE-LABlab(24.56, 43.78, -64.07)
CIE-LCHlch(24.56, 77.60, 304.34°)
OKLaboklab(36.88% 0.021 -0.1852)
OKLCHoklch(36.88% 0.186 276.5)
XYZxyz(7.9429, 4.2743, 32.7476)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F239E #929E23
analogous
#23549E #2F239E #6D239E
triadic
#2F239E #9E2F23 #239E2F
tetradic
#2F239E #9E2354 #929E23 #239E6D
square
#2F239E #9E2354 #929E23 #239E6D
split-complementary
#2F239E #9E6D23 #549E23
monochromatic
#110D3A #20186C #2F239E #3E2ED0 #6C60DC

Accessibility & contrast

On white

11.32
#2F239E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F239E
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F239E#FFFFFF#000000##FFFFFF
##2F239E1.0011.321.8611.32
#FFFFFF11.321.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA1
Deuteranopia (green-blind)
#00359C
Tritanopia (blue-blind)
#00475F
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2f239e;
/* rgb */ color: rgb(47, 35, 158);
/* oklch */ color: oklch(36.9% 0.186 276.5);
Tailwind
colors: {
  custom: {
    50: '#7961bc',
    500: '#2f239e',
    950: '#000000',
  },
}
SCSS
$custom: #2f239e;
$custom-light: #7961bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f239e",
  "rgb": {
    "r": 47,
    "g": 35,
    "b": 158
  },
  "hsl": {
    "h": 245.854,
    "s": 63.731,
    "l": 37.843
  },
  "oklch": {
    "l": 0.3688,
    "c": 0.18637,
    "h": 276.5
  },
  "luminance": 0.04275
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F239E

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

Preview Lab → · Contrast checker → · Palette generator →

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