#2F238E#2F238E

#2F238E is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.2% C 0.166 H 278.5°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#2F238E
RGBrgb(47, 35, 142)
HSLhsl(247, 60%, 35%)
HSVhsv(247, 75%, 56%)
CMYKcmyk(66.9%, 75.4%, 0%, 44.3%)
CIE-LABlab(22.86, 38.58, -57.02)
CIE-LCHlch(22.86, 68.85, 304.08°)
OKLaboklab(35.17% 0.0247 -0.1646)
OKLCHoklch(35.17% 0.166 278.5)
XYZxyz(6.6542, 3.7588, 25.9608)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F238E #828E23
analogous
#234D8E #2F238E #65238E
triadic
#2F238E #8E2F23 #238E2F
tetradic
#2F238E #8E234D #828E23 #238E65
square
#2F238E #8E234D #828E23 #238E65
split-complementary
#2F238E #8E6523 #4D8E23
monochromatic
#0E0B2C #1F175D #2F238E #3F2FBF #6456D5

Accessibility & contrast

On white

11.99
#2F238E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F238E
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F238E#FFFFFF#000000##FFFFFF
##2F238E1.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B91
Deuteranopia (green-blind)
#00328C
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2f238e;
/* rgb */ color: rgb(47, 35, 142);
/* oklch */ color: oklch(35.2% 0.166 278.5);
Tailwind
colors: {
  custom: {
    50: '#7560b0',
    500: '#2f238e',
    950: '#000000',
  },
}
SCSS
$custom: #2f238e;
$custom-light: #7560b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f238e",
  "rgb": {
    "r": 47,
    "g": 35,
    "b": 142
  },
  "hsl": {
    "h": 246.729,
    "s": 60.452,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35173,
    "c": 0.16649,
    "h": 278.5
  },
  "luminance": 0.03759
}

Semantic roles & 50–950 ramp

primary
#2F238E
secondary
#AEB953
accent
#E444D2
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2F238E

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

Preview Lab → · Contrast checker → · Palette generator →

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