#2F388C#2F388C

#2F388C is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.6% C 0.138 H 273.4°. Best body text is #FFFFFF at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#2F388C
RGBrgb(47, 56, 140)
HSLhsl(234, 50%, 37%)
HSVhsv(234, 66%, 55%)
CMYKcmyk(66.4%, 60%, 0%, 45.1%)
CIE-LABlab(27.64, 24.60, -47.95)
CIE-LCHlch(27.64, 53.89, 297.16°)
OKLaboklab(38.59% 0.0082 -0.138)
OKLCHoklch(38.59% 0.138 273.4)
XYZxyz(7.3185, 5.3255, 25.4481)
Luminance0.0533 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F388C #8C832F
analogous
#2F678C #2F388C #552F8C
triadic
#2F388C #8C2F38 #388C2F
tetradic
#2F388C #8C2F67 #8C832F #2F8C55
square
#2F388C #8C2F67 #8C832F #2F8C55
split-complementary
#2F388C #8C552F #678C2F
monochromatic
#101330 #20265E #2F388C #3E4ABA #6972CD

Accessibility & contrast

On white

10.17
#2F388C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#2F388C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F388C
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F388C#FFFFFF#000000##FFFFFF
##2F388C1.0010.172.0710.17
#FFFFFF10.171.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458F
Deuteranopia (green-blind)
#003D8A
Tritanopia (blue-blind)
#004D5C
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2f388c;
/* rgb */ color: rgb(47, 56, 140);
/* oklch */ color: oklch(38.6% 0.138 273.4);
Tailwind
colors: {
  custom: {
    50: '#736eae',
    500: '#2f388c',
    950: '#000000',
  },
}
SCSS
$custom: #2f388c;
$custom-light: #736eae;
$custom-dark: #000000;
JSON
{
  "hex": "#2f388c",
  "rgb": {
    "r": 47,
    "g": 56,
    "b": 140
  },
  "hsl": {
    "h": 234.194,
    "s": 49.733,
    "l": 36.667
  },
  "oklch": {
    "l": 0.38593,
    "c": 0.13824,
    "h": 273.4
  },
  "luminance": 0.05326
}

Semantic roles & 50–950 ramp

primary
#2F388C
secondary
#B4AC63
accent
#CC4FD9
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #2F388C

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

Preview Lab → · Contrast checker → · Palette generator →

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