#2F237F#2F237F

#2F237F is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.6% C 0.147 H 280.9°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#2F237F
RGBrgb(47, 35, 127)
HSLhsl(248, 57%, 32%)
HSVhsv(248, 72%, 50%)
CMYKcmyk(63%, 72.4%, 0%, 50.2%)
CIE-LABlab(21.35, 33.60, -50.09)
CIE-LCHlch(21.35, 60.31, 303.85°)
OKLaboklab(33.65% 0.0278 -0.1444)
OKLCHoklch(33.65% 0.147 280.9)
XYZxyz(5.6029, 3.3383, 20.4237)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F237F #737F23
analogous
#23457F #2F237F #5D237F
triadic
#2F237F #7F2F23 #237F2F
tetradic
#2F237F #7F2345 #737F23 #237F5D
square
#2F237F #7F2345 #737F23 #237F5D
split-complementary
#2F237F #7F5D23 #457F23
monochromatic
#0B091F #1D164F #2F237F #4130AF #5F4ECE

Accessibility & contrast

On white

12.59
#2F237F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#2F237F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F237F
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F237F#FFFFFF#000000##FFFFFF
##2F237F1.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003682
Deuteranopia (green-blind)
#00307D
Tritanopia (blue-blind)
#003C4E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2f237f;
/* rgb */ color: rgb(47, 35, 127);
/* oklch */ color: oklch(33.6% 0.147 280.9);
Tailwind
colors: {
  custom: {
    50: '#725fa5',
    500: '#2f237f',
    950: '#000000',
  },
}
SCSS
$custom: #2f237f;
$custom-light: #725fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f237f",
  "rgb": {
    "r": 47,
    "g": 35,
    "b": 127
  },
  "hsl": {
    "h": 247.826,
    "s": 56.79,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33645,
    "c": 0.14704,
    "h": 280.9
  },
  "luminance": 0.03339
}

Semantic roles & 50–950 ramp

primary
#2F237F
secondary
#A4B14C
accent
#E048CC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #2F237F

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

Preview Lab → · Contrast checker → · Palette generator →

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