#2F238A#2F238A

#2F238A is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.8% C 0.161 H 279.1°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#2F238A
RGBrgb(47, 35, 138)
HSLhsl(247, 60%, 34%)
HSVhsv(247, 75%, 54%)
CMYKcmyk(65.9%, 74.6%, 0%, 45.9%)
CIE-LABlab(22.45, 37.26, -55.21)
CIE-LCHlch(22.45, 66.61, 304.02°)
OKLaboklab(34.76% 0.0256 -0.1593)
OKLCHoklch(34.76% 0.161 279.1)
XYZxyz(6.3593, 3.6409, 24.4075)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F238A #7E8A23
analogous
#234B8A #2F238A #63238A
triadic
#2F238A #8A2F23 #238A2F
tetradic
#2F238A #8A234B #7E8A23 #238A63
square
#2F238A #8A234B #7E8A23 #238A63
split-complementary
#2F238A #8A6323 #4B8A23
monochromatic
#0E0A28 #1E1759 #2F238A #402FBB #6354D4

Accessibility & contrast

On white

12.15
#2F238A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F238A
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F238A#FFFFFF#000000##FFFFFF
##2F238A1.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8D
Deuteranopia (green-blind)
#003288
Tritanopia (blue-blind)
#004054
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2f238a;
/* rgb */ color: rgb(47, 35, 138);
/* oklch */ color: oklch(34.8% 0.161 279.1);
Tailwind
colors: {
  custom: {
    50: '#7460ad',
    500: '#2f238a',
    950: '#000000',
  },
}
SCSS
$custom: #2f238a;
$custom-light: #7460ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2f238a",
  "rgb": {
    "r": 47,
    "g": 35,
    "b": 138
  },
  "hsl": {
    "h": 246.99,
    "s": 59.538,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34758,
    "c": 0.16138,
    "h": 279.1
  },
  "luminance": 0.03641
}

Semantic roles & 50–950 ramp

primary
#2F238A
secondary
#ACB751
accent
#E345D0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2F238A

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

Preview Lab → · Contrast checker → · Palette generator →

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