#2F238F#2F238F

#2F238F is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.3% C 0.168 H 278.4°. Best body text is #FFFFFF at 11.95:1 contrast (WCAG AA passes).

Color values

HEX#2F238F
RGBrgb(47, 35, 143)
HSLhsl(247, 61%, 35%)
HSVhsv(247, 76%, 56%)
CMYKcmyk(67.1%, 75.5%, 0%, 43.9%)
CIE-LABlab(22.96, 38.91, -57.47)
CIE-LCHlch(22.96, 69.41, 304.10°)
OKLaboklab(35.28% 0.0245 -0.166)
OKLCHoklch(35.28% 0.168 278.4)
XYZxyz(6.7297, 3.7890, 26.3580)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F238F #838F23
analogous
#234D8F #2F238F #65238F
triadic
#2F238F #8F2F23 #238F2F
tetradic
#2F238F #8F234D #838F23 #238F65
square
#2F238F #8F234D #838F23 #238F65
split-complementary
#2F238F #8F6523 #4D8F23
monochromatic
#0F0B2D #1F175E #2F238F #3F2FC0 #6557D6

Accessibility & contrast

On white

11.95
#2F238F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#2F238F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F238F
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F238F#FFFFFF#000000##FFFFFF
##2F238F1.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B92
Deuteranopia (green-blind)
#00328D
Tritanopia (blue-blind)
#004257
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2f238f;
/* rgb */ color: rgb(47, 35, 143);
/* oklch */ color: oklch(35.3% 0.168 278.4);
Tailwind
colors: {
  custom: {
    50: '#7560b1',
    500: '#2f238f',
    950: '#000000',
  },
}
SCSS
$custom: #2f238f;
$custom-light: #7560b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f238f",
  "rgb": {
    "r": 47,
    "g": 35,
    "b": 143
  },
  "hsl": {
    "h": 246.667,
    "s": 60.674,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35278,
    "c": 0.16776,
    "h": 278.4
  },
  "luminance": 0.0379
}

Semantic roles & 50–950 ramp

primary
#2F238F
secondary
#AFBA54
accent
#E444D2
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2F238F

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

Preview Lab → · Contrast checker → · Palette generator →

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