#252F9C#252F9C

#252F9C is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.8% C 0.174 H 270.9°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#252F9C
RGBrgb(37, 47, 156)
HSLhsl(235, 62%, 38%)
HSVhsv(235, 76%, 61%)
CMYKcmyk(76.3%, 69.9%, 0%, 38.8%)
CIE-LABlab(26.23, 35.04, -60.11)
CIE-LCHlch(26.23, 69.58, 300.24°)
OKLaboklab(37.84% 0.0027 -0.1739)
OKLCHoklch(37.84% 0.174 270.9)
XYZxyz(7.7782, 4.8258, 31.9676)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252F9C #9C9225
analogous
#256A9C #252F9C #56259C
triadic
#252F9C #9C252F #2F9C25
tetradic
#252F9C #9C256A #9C9225 #259C56
square
#252F9C #9C256A #9C9225 #259C56
split-complementary
#252F9C #9C5625 #6A9C25
monochromatic
#0E1139 #19206B #252F9C #313ECD #626CDA

Accessibility & contrast

On white

10.68
#252F9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#252F9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252F9C
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252F9C#FFFFFF#000000##FFFFFF
##252F9C1.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449F
Deuteranopia (green-blind)
#00389A
Tritanopia (blue-blind)
#004D61
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #252f9c;
/* rgb */ color: rgb(37, 47, 156);
/* oklch */ color: oklch(37.8% 0.174 270.9);
Tailwind
colors: {
  custom: {
    50: '#7368ba',
    500: '#252f9c',
    950: '#000000',
  },
}
SCSS
$custom: #252f9c;
$custom-light: #7368ba;
$custom-dark: #000000;
JSON
{
  "hex": "#252f9c",
  "rgb": {
    "r": 37,
    "g": 47,
    "b": 156
  },
  "hsl": {
    "h": 234.958,
    "s": 61.658,
    "l": 37.843
  },
  "oklch": {
    "l": 0.37841,
    "c": 0.17397,
    "h": 270.9
  },
  "luminance": 0.04827
}

Semantic roles & 50–950 ramp

primary
#252F9C
secondary
#BFB75E
accent
#D743E5
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090612
muted
#7B7A81

Preview Lab

Preview with #252F9C

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

Preview Lab → · Contrast checker → · Palette generator →

#252F9C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva