#2F237D#2F237D

#2F237D is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.4% C 0.144 H 281.3°. Best body text is #FFFFFF at 12.67:1 contrast (WCAG AA passes).

Color values

HEX#2F237D
RGBrgb(47, 35, 125)
HSLhsl(248, 56%, 31%)
HSVhsv(248, 72%, 49%)
CMYKcmyk(62.4%, 72%, 0%, 51%)
CIE-LABlab(21.16, 32.93, -49.14)
CIE-LCHlch(21.16, 59.15, 303.83°)
OKLaboklab(33.45% 0.0282 -0.1416)
OKLCHoklch(33.45% 0.144 281.3)
XYZxyz(5.4738, 3.2867, 19.7440)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F237D #717D23
analogous
#23447D #2F237D #5C237D
triadic
#2F237D #7D2F23 #237D2F
tetradic
#2F237D #7D2344 #717D23 #237D5C
square
#2F237D #7D2344 #717D23 #237D5C
split-complementary
#2F237D #7D5C23 #447D23
monochromatic
#0B081D #1D164D #2F237D #4130AD #5E4DCD

Accessibility & contrast

On white

12.67
#2F237D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#2F237D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F237D
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F237D#FFFFFF#000000##FFFFFF
##2F237D1.0012.671.6612.67
#FFFFFF12.671.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003680
Deuteranopia (green-blind)
#002F7B
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2f237d;
/* rgb */ color: rgb(47, 35, 125);
/* oklch */ color: oklch(33.4% 0.144 281.3);
Tailwind
colors: {
  custom: {
    50: '#725fa4',
    500: '#2f237d',
    950: '#000000',
  },
}
SCSS
$custom: #2f237d;
$custom-light: #725fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f237d",
  "rgb": {
    "r": 47,
    "g": 35,
    "b": 125
  },
  "hsl": {
    "h": 248,
    "s": 56.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33447,
    "c": 0.14437,
    "h": 281.3
  },
  "luminance": 0.03287
}

Semantic roles & 50–950 ramp

primary
#2F237D
secondary
#A2AF4C
accent
#E048CB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2F237D

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

Preview Lab → · Contrast checker → · Palette generator →

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