#2D238F#2D238F

#2D238F is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.1% C 0.168 H 277.4°. Best body text is #FFFFFF at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#2D238F
RGBrgb(45, 35, 143)
HSLhsl(246, 61%, 35%)
HSVhsv(246, 76%, 56%)
CMYKcmyk(68.5%, 75.5%, 0%, 43.9%)
CIE-LABlab(22.80, 38.68, -57.74)
CIE-LCHlch(22.80, 69.50, 303.81°)
OKLaboklab(35.12% 0.0217 -0.1668)
OKLCHoklch(35.12% 0.168 277.4)
XYZxyz(6.6395, 3.7425, 26.3538)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D238F #858F23
analogous
#234F8F #2D238F #63238F
triadic
#2D238F #8F2D23 #238F2D
tetradic
#2D238F #8F234F #858F23 #238F63
square
#2D238F #8F234F #858F23 #238F63
split-complementary
#2D238F #8F6323 #4F8F23
monochromatic
#0E0B2D #1E175E #2D238F #3C2FC0 #6257D6

Accessibility & contrast

On white

12.01
#2D238F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2D238F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D238F
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D238F#FFFFFF#000000##FFFFFF
##2D238F1.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B92
Deuteranopia (green-blind)
#00328D
Tritanopia (blue-blind)
#004257
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2d238f;
/* rgb */ color: rgb(45, 35, 143);
/* oklch */ color: oklch(35.1% 0.168 277.4);
Tailwind
colors: {
  custom: {
    50: '#7460b1',
    500: '#2d238f',
    950: '#000000',
  },
}
SCSS
$custom: #2d238f;
$custom-light: #7460b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2d238f",
  "rgb": {
    "r": 45,
    "g": 35,
    "b": 143
  },
  "hsl": {
    "h": 245.556,
    "s": 60.674,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35124,
    "c": 0.16821,
    "h": 277.4
  },
  "luminance": 0.03743
}

Semantic roles & 50–950 ramp

primary
#2D238F
secondary
#B0BA54
accent
#E444D5
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2D238F

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

Preview Lab → · Contrast checker → · Palette generator →

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