#233171#233171

#233171 is a dark, moderate blue. Relative luminance 0.037; OKLCH L 34.1% C 0.112 H 270.2°. Best body text is #FFFFFF at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#233171
RGBrgb(35, 49, 113)
HSLhsl(229, 53%, 29%)
HSVhsv(229, 69%, 44%)
CMYKcmyk(69%, 56.6%, 0%, 55.7%)
CIE-LABlab(22.81, 17.15, -38.82)
CIE-LCHlch(22.81, 42.44, 293.83°)
OKLaboklab(34.11% 0.0004 -0.1116)
OKLCHoklch(34.11% 0.112 270.2)
XYZxyz(4.7711, 3.7458, 16.0912)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#233171 #716323
analogous
#235871 #233171 #3C2371
triadic
#233171 #712331 #317123
tetradic
#233171 #712358 #716323 #23713C
square
#233171 #712358 #716323 #23713C
split-complementary
#233171 #713C23 #587123
monochromatic
#070A17 #151D42 #233171 #3145A0 #485FC6

Accessibility & contrast

On white

12.01
#233171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#233171 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##233171#FFFFFF#000000##FFFFFF
##2331711.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)
#033A73
Deuteranopia (green-blind)
#003370
Tritanopia (blue-blind)
#00404C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #233171;
/* rgb */ color: rgb(35, 49, 113);
/* oklch */ color: oklch(34.1% 0.112 270.2);
Tailwind
colors: {
  custom: {
    50: '#68689a',
    500: '#233171',
    950: '#000000',
  },
}
SCSS
$custom: #233171;
$custom-light: #68689a;
$custom-dark: #000000;
JSON
{
  "hex": "#233171",
  "rgb": {
    "r": 35,
    "g": 49,
    "b": 113
  },
  "hsl": {
    "h": 229.231,
    "s": 52.703,
    "l": 29.02
  },
  "oklch": {
    "l": 0.34107,
    "c": 0.11156,
    "h": 270.2
  },
  "luminance": 0.03746
}

Semantic roles & 50–950 ramp

primary
#233171
secondary
#A4944C
accent
#C24CDC
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #233171

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

Preview Lab → · Contrast checker → · Palette generator →

#233171 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva