#2F238B#2F238B

#2F238B is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.9% C 0.163 H 279.0°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#2F238B
RGBrgb(47, 35, 139)
HSLhsl(247, 60%, 34%)
HSVhsv(247, 75%, 55%)
CMYKcmyk(66.2%, 74.8%, 0%, 45.5%)
CIE-LABlab(22.55, 37.59, -55.66)
CIE-LCHlch(22.55, 67.17, 304.04°)
OKLaboklab(34.86% 0.0254 -0.1607)
OKLCHoklch(34.86% 0.163 279)
XYZxyz(6.4320, 3.6700, 24.7905)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F238B #7F8B23
analogous
#234B8B #2F238B #63238B
triadic
#2F238B #8B2F23 #238B2F
tetradic
#2F238B #8B234B #7F8B23 #238B63
square
#2F238B #8B234B #7F8B23 #238B63
split-complementary
#2F238B #8B6323 #4B8B23
monochromatic
#0E0A29 #1E175A #2F238B #402FBC #6354D4

Accessibility & contrast

On white

12.11
#2F238B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2F238B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F238B
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F238B#FFFFFF#000000##FFFFFF
##2F238B1.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8E
Deuteranopia (green-blind)
#003289
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2f238b;
/* rgb */ color: rgb(47, 35, 139);
/* oklch */ color: oklch(34.9% 0.163 279.0);
Tailwind
colors: {
  custom: {
    50: '#7460ae',
    500: '#2f238b',
    950: '#000000',
  },
}
SCSS
$custom: #2f238b;
$custom-light: #7460ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2f238b",
  "rgb": {
    "r": 47,
    "g": 35,
    "b": 139
  },
  "hsl": {
    "h": 246.923,
    "s": 59.77,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34862,
    "c": 0.16266,
    "h": 279
  },
  "luminance": 0.0367
}

Semantic roles & 50–950 ramp

primary
#2F238B
secondary
#ACB852
accent
#E345D1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2F238B

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

Preview Lab → · Contrast checker → · Palette generator →

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