#2F237A#2F237A

#2F237A is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.2% C 0.140 H 281.8°. Best body text is #FFFFFF at 12.79:1 contrast (WCAG AA passes).

Color values

HEX#2F237A
RGBrgb(47, 35, 122)
HSLhsl(248, 55%, 31%)
HSVhsv(248, 71%, 48%)
CMYKcmyk(61.5%, 71.3%, 0%, 52.2%)
CIE-LABlab(20.87, 31.92, -47.70)
CIE-LCHlch(20.87, 57.39, 303.79°)
OKLaboklab(33.15% 0.0287 -0.1374)
OKLCHoklch(33.15% 0.14 281.8)
XYZxyz(5.2851, 3.2112, 18.7499)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F237A #6E7A23
analogous
#23427A #2F237A #5A237A
triadic
#2F237A #7A2F23 #237A2F
tetradic
#2F237A #7A2342 #6E7A23 #237A5A
square
#2F237A #7A2342 #6E7A23 #237A5A
split-complementary
#2F237A #7A5A23 #427A23
monochromatic
#0A081B #1D154A #2F237A #4131AA #5D4CCC

Accessibility & contrast

On white

12.79
#2F237A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2F237A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F237A
12.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F237A#FFFFFF#000000##FFFFFF
##2F237A1.0012.791.6412.79
#FFFFFF12.791.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357D
Deuteranopia (green-blind)
#002F78
Tritanopia (blue-blind)
#003A4B
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2f237a;
/* rgb */ color: rgb(47, 35, 122);
/* oklch */ color: oklch(33.2% 0.140 281.8);
Tailwind
colors: {
  custom: {
    50: '#715fa1',
    500: '#2f237a',
    950: '#000000',
  },
}
SCSS
$custom: #2f237a;
$custom-light: #715fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f237a",
  "rgb": {
    "r": 47,
    "g": 35,
    "b": 122
  },
  "hsl": {
    "h": 248.276,
    "s": 55.414,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33153,
    "c": 0.14035,
    "h": 281.8
  },
  "luminance": 0.03212
}

Semantic roles & 50–950 ramp

primary
#2F237A
secondary
#9FAD4C
accent
#DF49CA
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2F237A

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

Preview Lab → · Contrast checker → · Palette generator →

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