#2F237E#2F237E

#2F237E is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.5% C 0.146 H 281.1°. Best body text is #FFFFFF at 12.63:1 contrast (WCAG AA passes).

Color values

HEX#2F237E
RGBrgb(47, 35, 126)
HSLhsl(248, 57%, 32%)
HSVhsv(248, 72%, 49%)
CMYKcmyk(62.7%, 72.2%, 0%, 50.6%)
CIE-LABlab(21.25, 33.26, -49.61)
CIE-LCHlch(21.25, 59.73, 303.84°)
OKLaboklab(33.55% 0.028 -0.143)
OKLCHoklch(33.55% 0.146 281.1)
XYZxyz(5.5380, 3.3124, 20.0821)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F237E #727E23
analogous
#23457E #2F237E #5D237E
triadic
#2F237E #7E2F23 #237E2F
tetradic
#2F237E #7E2345 #727E23 #237E5D
square
#2F237E #7E2345 #727E23 #237E5D
split-complementary
#2F237E #7E5D23 #457E23
monochromatic
#0B081E #1D164E #2F237E #4130AE #5F4ECE

Accessibility & contrast

On white

12.63
#2F237E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#2F237E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F237E
12.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F237E#FFFFFF#000000##FFFFFF
##2F237E1.0012.631.6612.63
#FFFFFF12.631.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003681
Deuteranopia (green-blind)
#00307C
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2f237e;
/* rgb */ color: rgb(47, 35, 126);
/* oklch */ color: oklch(33.5% 0.146 281.1);
Tailwind
colors: {
  custom: {
    50: '#725fa4',
    500: '#2f237e',
    950: '#000000',
  },
}
SCSS
$custom: #2f237e;
$custom-light: #725fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f237e",
  "rgb": {
    "r": 47,
    "g": 35,
    "b": 126
  },
  "hsl": {
    "h": 247.912,
    "s": 56.522,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33546,
    "c": 0.14571,
    "h": 281.1
  },
  "luminance": 0.03313
}

Semantic roles & 50–950 ramp

primary
#2F237E
secondary
#A3B04C
accent
#E048CC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #2F237E

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

Preview Lab → · Contrast checker → · Palette generator →

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