#2F238D#2F238D

#2F238D is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.1% C 0.165 H 278.7°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#2F238D
RGBrgb(47, 35, 141)
HSLhsl(247, 60%, 35%)
HSVhsv(247, 75%, 55%)
CMYKcmyk(66.7%, 75.2%, 0%, 44.7%)
CIE-LABlab(22.75, 38.26, -56.57)
CIE-LCHlch(22.75, 68.29, 304.07°)
OKLaboklab(35.07% 0.025 -0.1633)
OKLCHoklch(35.07% 0.165 278.7)
XYZxyz(6.5795, 3.7289, 25.5672)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F238D #818D23
analogous
#234C8D #2F238D #64238D
triadic
#2F238D #8D2F23 #238D2F
tetradic
#2F238D #8D234C #818D23 #238D64
square
#2F238D #8D234C #818D23 #238D64
split-complementary
#2F238D #8D6423 #4C8D23
monochromatic
#0E0B2B #1F175C #2F238D #3F2FBE #6455D5

Accessibility & contrast

On white

12.03
#2F238D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2F238D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F238D
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F238D#FFFFFF#000000##FFFFFF
##2F238D1.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A90
Deuteranopia (green-blind)
#00328B
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2f238d;
/* rgb */ color: rgb(47, 35, 141);
/* oklch */ color: oklch(35.1% 0.165 278.7);
Tailwind
colors: {
  custom: {
    50: '#7560af',
    500: '#2f238d',
    950: '#000000',
  },
}
SCSS
$custom: #2f238d;
$custom-light: #7560af;
$custom-dark: #000000;
JSON
{
  "hex": "#2f238d",
  "rgb": {
    "r": 47,
    "g": 35,
    "b": 141
  },
  "hsl": {
    "h": 246.792,
    "s": 60.227,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35069,
    "c": 0.16522,
    "h": 278.7
  },
  "luminance": 0.03729
}

Semantic roles & 50–950 ramp

primary
#2F238D
secondary
#ADB953
accent
#E344D1
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090511
muted
#7B7980

Preview Lab

Preview with #2F238D

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

Preview Lab → · Contrast checker → · Palette generator →

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