#2F237B#2F237B

#2F237B is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.3% C 0.142 H 281.6°. Best body text is #FFFFFF at 12.75:1 contrast (WCAG AA passes).

Color values

HEX#2F237B
RGBrgb(47, 35, 123)
HSLhsl(248, 56%, 31%)
HSVhsv(248, 72%, 48%)
CMYKcmyk(61.8%, 71.5%, 0%, 51.8%)
CIE-LABlab(20.97, 32.25, -48.18)
CIE-LCHlch(20.97, 57.98, 303.80°)
OKLaboklab(33.25% 0.0286 -0.1388)
OKLCHoklch(33.25% 0.142 281.6)
XYZxyz(5.3474, 3.2361, 19.0779)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F237B #6F7B23
analogous
#23437B #2F237B #5B237B
triadic
#2F237B #7B2F23 #237B2F
tetradic
#2F237B #7B2343 #6F7B23 #237B5B
square
#2F237B #7B2343 #6F7B23 #237B5B
split-complementary
#2F237B #7B5B23 #437B23
monochromatic
#0B081C #1D154B #2F237B #4131AB #5E4CCC

Accessibility & contrast

On white

12.75
#2F237B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#2F237B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F237B
12.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F237B#FFFFFF#000000##FFFFFF
##2F237B1.0012.751.6512.75
#FFFFFF12.751.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357E
Deuteranopia (green-blind)
#002F79
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2f237b;
/* rgb */ color: rgb(47, 35, 123);
/* oklch */ color: oklch(33.3% 0.142 281.6);
Tailwind
colors: {
  custom: {
    50: '#715fa2',
    500: '#2f237b',
    950: '#000000',
  },
}
SCSS
$custom: #2f237b;
$custom-light: #715fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f237b",
  "rgb": {
    "r": 47,
    "g": 35,
    "b": 123
  },
  "hsl": {
    "h": 248.182,
    "s": 55.696,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33251,
    "c": 0.1417,
    "h": 281.6
  },
  "luminance": 0.03236
}

Semantic roles & 50–950 ramp

primary
#2F237B
secondary
#A0AE4C
accent
#DF49CB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2F237B

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

Preview Lab → · Contrast checker → · Palette generator →

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