#2F238C#2F238C

#2F238C is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.0% C 0.164 H 278.8°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#2F238C
RGBrgb(47, 35, 140)
HSLhsl(247, 60%, 34%)
HSVhsv(247, 75%, 55%)
CMYKcmyk(66.4%, 75%, 0%, 45.1%)
CIE-LABlab(22.65, 37.93, -56.12)
CIE-LCHlch(22.65, 67.73, 304.05°)
OKLaboklab(34.97% 0.0252 -0.162)
OKLCHoklch(34.97% 0.164 278.8)
XYZxyz(6.5054, 3.6993, 25.1771)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F238C #808C23
analogous
#234C8C #2F238C #64238C
triadic
#2F238C #8C2F23 #238C2F
tetradic
#2F238C #8C234C #808C23 #238C64
square
#2F238C #8C234C #808C23 #238C64
split-complementary
#2F238C #8C6423 #4C8C23
monochromatic
#0E0B2A #1F175B #2F238C #3F2FBD #6355D4

Accessibility & contrast

On white

12.07
#2F238C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2F238C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F238C
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F238C#FFFFFF#000000##FFFFFF
##2F238C1.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8F
Deuteranopia (green-blind)
#00328A
Tritanopia (blue-blind)
#004155
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2f238c;
/* rgb */ color: rgb(47, 35, 140);
/* oklch */ color: oklch(35.0% 0.164 278.8);
Tailwind
colors: {
  custom: {
    50: '#7560af',
    500: '#2f238c',
    950: '#000000',
  },
}
SCSS
$custom: #2f238c;
$custom-light: #7560af;
$custom-dark: #000000;
JSON
{
  "hex": "#2f238c",
  "rgb": {
    "r": 47,
    "g": 35,
    "b": 140
  },
  "hsl": {
    "h": 246.857,
    "s": 60,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34965,
    "c": 0.16395,
    "h": 278.8
  },
  "luminance": 0.037
}

Semantic roles & 50–950 ramp

primary
#2F238C
secondary
#ADB852
accent
#E345D1
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090510
muted
#7B797F

Preview Lab

Preview with #2F238C

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

Preview Lab → · Contrast checker → · Palette generator →

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