#2F236E#2F236E

#2F236E is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.0% C 0.124 H 284.3°. Best body text is #FFFFFF at 13.24:1 contrast (WCAG AA passes).

Color values

HEX#2F236E
RGBrgb(47, 35, 110)
HSLhsl(250, 52%, 28%)
HSVhsv(250, 68%, 43%)
CMYKcmyk(57.3%, 68.2%, 0%, 56.9%)
CIE-LABlab(19.77, 27.86, -41.79)
CIE-LCHlch(19.77, 50.23, 303.69°)
OKLaboklab(32.02% 0.0305 -0.12)
OKLCHoklch(32.02% 0.124 284.3)
XYZxyz(4.5869, 2.9319, 15.0730)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F236E #626E23
analogous
#233C6E #2F236E #54236E
triadic
#2F236E #6E2F23 #236E2F
tetradic
#2F236E #6E233C #626E23 #236E54
square
#2F236E #6E233C #626E23 #236E54
split-complementary
#2F236E #6E5423 #3C6E23
monochromatic
#0A0717 #1B1440 #2F236E #43329C #5B47C4

Accessibility & contrast

On white

13.24
#2F236E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2F236E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F236E
13.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F236E#FFFFFF#000000##FFFFFF
##2F236E1.0013.241.5913.24
#FFFFFF13.241.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003270
Deuteranopia (green-blind)
#002D6D
Tritanopia (blue-blind)
#133645
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2f236e;
/* rgb */ color: rgb(47, 35, 110);
/* oklch */ color: oklch(32.0% 0.124 284.3);
Tailwind
colors: {
  custom: {
    50: '#6f5f98',
    500: '#2f236e',
    950: '#000000',
  },
}
SCSS
$custom: #2f236e;
$custom-light: #6f5f98;
$custom-dark: #000000;
JSON
{
  "hex": "#2f236e",
  "rgb": {
    "r": 47,
    "g": 35,
    "b": 110
  },
  "hsl": {
    "h": 249.6,
    "s": 51.724,
    "l": 28.431
  },
  "oklch": {
    "l": 0.32018,
    "c": 0.12385,
    "h": 284.3
  },
  "luminance": 0.02932
}

Semantic roles & 50–950 ramp

primary
#2F236E
secondary
#94A14C
accent
#DB4DC4
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040E
muted
#7A797E

Preview Lab

Preview with #2F236E

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

Preview Lab → · Contrast checker → · Palette generator →

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