#2D308E#2D308E

#2D308E is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.1% C 0.152 H 274.8°. Best body text is #FFFFFF at 10.91:1 contrast (WCAG AA passes).

Color values

HEX#2D308E
RGBrgb(45, 48, 142)
HSLhsl(238, 52%, 37%)
HSVhsv(238, 68%, 56%)
CMYKcmyk(68.3%, 66.2%, 0%, 44.3%)
CIE-LABlab(25.64, 30.32, -52.47)
CIE-LCHlch(25.64, 60.59, 300.02°)
OKLaboklab(37.13% 0.0126 -0.1514)
OKLCHoklch(37.13% 0.152 274.8)
XYZxyz(7.0200, 4.6242, 26.1085)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D308E #8E8B2D
analogous
#2D618E #2D308E #5B2D8E
triadic
#2D308E #8E2D30 #308E2D
tetradic
#2D308E #8E2D61 #8E8B2D #2D8E5B
square
#2D308E #8E2D61 #8E8B2D #2D8E5B
split-complementary
#2D308E #8E5B2D #618E2D
monochromatic
#101131 #1E2060 #2D308E #3C40BC #676ACF

Accessibility & contrast

On white

10.91
#2D308E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#2D308E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D308E
10.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D308E#FFFFFF#000000##FFFFFF
##2D308E1.0010.911.9310.91
#FFFFFF10.911.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004191
Deuteranopia (green-blind)
#00388C
Tritanopia (blue-blind)
#00485A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2d308e;
/* rgb */ color: rgb(45, 48, 142);
/* oklch */ color: oklch(37.1% 0.152 274.8);
Tailwind
colors: {
  custom: {
    50: '#7368b0',
    500: '#2d308e',
    950: '#000000',
  },
}
SCSS
$custom: #2d308e;
$custom-light: #7368b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d308e",
  "rgb": {
    "r": 45,
    "g": 48,
    "b": 142
  },
  "hsl": {
    "h": 238.144,
    "s": 51.872,
    "l": 36.667
  },
  "oklch": {
    "l": 0.37134,
    "c": 0.1519,
    "h": 274.8
  },
  "luminance": 0.04625
}

Semantic roles & 50–950 ramp

primary
#2D308E
secondary
#B5B361
accent
#D74CDB
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2D308E

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

Preview Lab → · Contrast checker → · Palette generator →

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