#2F236F#2F236F

#2F236F is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.1% C 0.125 H 284.0°. Best body text is #FFFFFF at 13.20:1 contrast (WCAG AA passes).

Color values

HEX#2F236F
RGBrgb(47, 35, 111)
HSLhsl(249, 52%, 29%)
HSVhsv(249, 68%, 44%)
CMYKcmyk(57.7%, 68.5%, 0%, 56.5%)
CIE-LABlab(19.86, 28.20, -42.29)
CIE-LCHlch(19.86, 50.83, 303.70°)
OKLaboklab(32.11% 0.0304 -0.1215)
OKLCHoklch(32.11% 0.125 284)
XYZxyz(4.6417, 2.9538, 15.3614)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F236F #636F23
analogous
#233D6F #2F236F #55236F
triadic
#2F236F #6F2F23 #236F2F
tetradic
#2F236F #6F233D #636F23 #236F55
square
#2F236F #6F233D #636F23 #236F55
split-complementary
#2F236F #6F5523 #3D6F23
monochromatic
#0A0717 #1B1440 #2F236F #43329E #5B47C5

Accessibility & contrast

On white

13.20
#2F236F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F236F
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F236F#FFFFFF#000000##FFFFFF
##2F236F1.0013.201.5913.20
#FFFFFF13.201.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003271
Deuteranopia (green-blind)
#002E6D
Tritanopia (blue-blind)
#123645
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2f236f;
/* rgb */ color: rgb(47, 35, 111);
/* oklch */ color: oklch(32.1% 0.125 284.0);
Tailwind
colors: {
  custom: {
    50: '#6f5f99',
    500: '#2f236f',
    950: '#000000',
  },
}
SCSS
$custom: #2f236f;
$custom-light: #6f5f99;
$custom-dark: #000000;
JSON
{
  "hex": "#2f236f",
  "rgb": {
    "r": 47,
    "g": 35,
    "b": 111
  },
  "hsl": {
    "h": 249.474,
    "s": 52.055,
    "l": 28.627
  },
  "oklch": {
    "l": 0.3211,
    "c": 0.12525,
    "h": 284
  },
  "luminance": 0.02954
}

Semantic roles & 50–950 ramp

primary
#2F236F
secondary
#95A24C
accent
#DB4CC5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2F236F

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

Preview Lab → · Contrast checker → · Palette generator →

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