#2F239D#2F239D

#2F239D is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.8% C 0.185 H 276.6°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#2F239D
RGBrgb(47, 35, 157)
HSLhsl(246, 64%, 38%)
HSVhsv(246, 78%, 62%)
CMYKcmyk(70.1%, 77.7%, 0%, 38.4%)
CIE-LABlab(24.45, 43.46, -63.64)
CIE-LCHlch(24.45, 77.06, 304.33°)
OKLaboklab(36.77% 0.0212 -0.1839)
OKLCHoklch(36.77% 0.185 276.6)
XYZxyz(7.8571, 4.2400, 32.2961)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F239D #919D23
analogous
#23549D #2F239D #6C239D
triadic
#2F239D #9D2F23 #239D2F
tetradic
#2F239D #9D2354 #919D23 #239D6C
square
#2F239D #9D2354 #919D23 #239D6C
split-complementary
#2F239D #9D6C23 #549D23
monochromatic
#110D39 #20186B #2F239D #3E2ECF #6B5FDB

Accessibility & contrast

On white

11.36
#2F239D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#2F239D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F239D
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F239D#FFFFFF#000000##FFFFFF
##2F239D1.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f239d;
/* rgb */ color: rgb(47, 35, 157);
/* oklch */ color: oklch(36.8% 0.185 276.6);
Tailwind
colors: {
  custom: {
    50: '#7861bb',
    500: '#2f239d',
    950: '#000000',
  },
}
SCSS
$custom: #2f239d;
$custom-light: #7861bb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f239d",
  "rgb": {
    "r": 47,
    "g": 35,
    "b": 157
  },
  "hsl": {
    "h": 245.902,
    "s": 63.542,
    "l": 37.647
  },
  "oklch": {
    "l": 0.36771,
    "c": 0.18516,
    "h": 276.6
  },
  "luminance": 0.04241
}

Semantic roles & 50–950 ramp

primary
#2F239D
secondary
#B6C05C
accent
#E741D6
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2F239D

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

Preview Lab → · Contrast checker → · Palette generator →

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