#2F309C#2F309C

#2F309C is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.6% C 0.170 H 274.6°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#2F309C
RGBrgb(47, 48, 156)
HSLhsl(239, 54%, 40%)
HSVhsv(239, 70%, 61%)
CMYKcmyk(69.9%, 69.2%, 0%, 38.8%)
CIE-LABlab(27.07, 35.55, -58.72)
CIE-LCHlch(27.07, 68.64, 301.19°)
OKLaboklab(38.61% 0.0136 -0.1696)
OKLCHoklch(38.61% 0.17 274.6)
XYZxyz(8.2280, 5.1178, 32.0003)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F309C #9C9B2F
analogous
#2F669C #2F309C #652F9C
triadic
#2F309C #9C2F30 #309C2F
tetradic
#2F309C #9C2F66 #9C9B2F #2F9C65
square
#2F309C #9C2F66 #9C9B2F #2F9C65
split-complementary
#2F309C #9C652F #669C2F
monochromatic
#13133E #21226D #2F309C #4243C6 #7172D4

Accessibility & contrast

On white

10.38
#2F309C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#2F309C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F309C
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F309C#FFFFFF#000000##FFFFFF
##2F309C1.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459F
Deuteranopia (green-blind)
#003B9A
Tritanopia (blue-blind)
#004D62
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2f309c;
/* rgb */ color: rgb(47, 48, 156);
/* oklch */ color: oklch(38.6% 0.170 274.6);
Tailwind
colors: {
  custom: {
    50: '#7769ba',
    500: '#2f309c',
    950: '#000000',
  },
}
SCSS
$custom: #2f309c;
$custom-light: #7769ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2f309c",
  "rgb": {
    "r": 47,
    "g": 48,
    "b": 156
  },
  "hsl": {
    "h": 239.45,
    "s": 53.695,
    "l": 39.804
  },
  "oklch": {
    "l": 0.38606,
    "c": 0.17018,
    "h": 274.6
  },
  "luminance": 0.05119
}

Semantic roles & 50–950 ramp

primary
#2F309C
secondary
#BCBB6B
accent
#DC4BDD
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2F309C

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

Preview Lab → · Contrast checker → · Palette generator →

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